Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

launch startx from xbmc menu
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
launch startx from xbmc menu
8th Apr, 2013, 11:57 AM
Post: #1
alexw8 Offline
Registered
Posts: 1
Joined: Apr 2013
Reputation: 0
launch startx from xbmc menu
Well I have to say i have searched allot but allot to do this, but still going crazy, I am hopping someone kind will be able to guide me or help me sort this out.

I have put a button on the main screen that should shutoff xbmc and run startx. now if I do it manually on ssh works great. I have managed to make a py file with the code, but either xbmc shuts off, or desktop starts but does not show since xbmc is up, and that is depending wich I put on top...

here is how far I have gone, and still no success. I guess the big problem is that my second line of os.system does not start not sure why, and second is that they would need to run at the same time. I hope you all understood my problem. Tongue THANKKKSSSSSSS for all your help..

OH AND BEFORE YOU READ FURTHER.... I AM A NOOB... BlushBlushBlush

Code:
import os

mypass = 'raspberry'
sudo_command1 = 'startx'
sudo_command2 = 'sudo /etc/init.d/xbmc stop'
P = os.system('echo %s|sudo -S %s' % (mypass, sudo_command1))
P = os.system('echo %s|sudo -S %s' % (mypass, sudo_command2))
Find all posts by this user
Quote this message in a reply
30th Apr, 2013, 12:22 AM
Post: #2
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: launch startx from xbmc menu
create a script (executable, in xbians home dir for example)

chmod +x script

put inside :

#!/bin/sh

sudo pkill xbmc.bin
sudo pkill splash
sleep 10

sudo startx

from inside xvmc execute just this one script

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


Possibly Related Threads...
Thread: Author Replies Views: Last Post
  [SOLVED] How to disable XBMC launch at startup pedrogaza 3 36,034 24th Mar, 2013 12:35 AM
Last Post: pedrogaza

  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 11th May, 2025, 04:02 PM Powered By MyBB, © 2002-2025 MyBB Group.