HackModford
Active Member
- Joined
- Oct 2, 2007
- Messages
- 813
- Age
- 33
When I get home I will download latest pnd
Change plugin
And see what happens...
Change plugin
And see what happens...
I did'nt knew about the shortcut... but it dont do anythingCaine said:Maybe a silly question, but did you try pressing the '\' key (without the quotes)?
<edit>By the way, the action 199 called in the webserver api is toggle fullscreen</edit>
<edit2>Maybe to clarify it a bit, manually pressing '\' is the equivalent of calling xbmc.executehttpapi("Action(199)")</edit2>
Started from xfce, xbmc is running with one (no sure about minimenu)HackModford said:Maybe it's because xbmc is running without a window manager? I'm probably totally wrong and noobish
yepHackModford said:I bet if you could start xbmc in windowed mode then the minimize commands would work. maybe
havee a look within :HackModford said:LOL great...
I tried editing the plugin with your changes but I now get an error when it tries to start the launcher addon.
os.system("%s %s &" % (launcher["application"], launcher["args"]))
os.system("%s %s &" % (launcher["args"], launcher["application"]))
xbmc.executebuiltin("Quit")
xbmc.executebuiltin("XBMC.Quit")
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
os.system("%s %s &" % (launcher["args"], launcher["application"]))
xbmc.executebuiltin("XBMC.Quit")
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
elif (sys.platform.startswith('darwin')):
os.system("pnd_run %s %s &" % (launcher["application"], launcher["args"]))
os.system("pnd_run " + "%s %s &" % (launcher["application"], launcher["args"]))
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
os.system("pnd_run " + "%s %s &" % (launcher["application"], launcher["args"]))
xbmc.executebuiltin("XBMC.Quit")
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
elif (sys.platform.startswith('darwin')):
os.system("pnd_run '%s %s' &" % (launcher["application"], launcher["args"]))
HackModford said:could I pass a command that would kill xbmc in the arg section? (Just as a temporary dirty hack?)
...
And how to set it up as the default GUI so when you quit your program it goes right back to xbmc (just like the xbox does)
#this minimizes xbmc some apps seems to need it
xbmc.executehttpapi("Action(199)")
os.system("%s %s" % (launcher["application"], launcher["args"]))
#this brings xbmc back
xbmc.executehttpapi("Action(199)")
Me neitherCaine said:I don't really understand why the regular minimizing behaviour fails on the Pandora. On my media center running a bare X (XBMC can't run without X) it works just fine. Minimizing causes xbmc to go to a quarter of my screen size, I can then move my mouse over the launched application and start using it.
I don't even know where to startCaine said:@sebt3
Do you plan to look into the xbmc webserver? The httpapi is used by quite a few scripts I think. It would be very nice if it worked properly.
mindlord said:try:
Code:os.system("pnd_run '%s %s' &" % (launcher["application"], launcher["args"]))
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("XBMC.Minimize")
os.system("%s %s" % (launcher["args"], launcher["application"]))
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("XBMC.RestartApp")
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
#xbmc.executebuiltin("XBMC.Minimize")
os.system("%s %s" % (launcher["args"], launcher["application"]))
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("XBMC.Quit")
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
#xbmc.executebuiltin("XBMC.Minimize")
os.system("%s %s" % (launcher["args"], launcher["application"]))
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("XBMC.Minimize")
xbmc.executebuiltin("XBMC.Quit")
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("XBMC.Minimize")
os.system("%s %s" % (launcher["args"], launcher["application"]))
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("XBMC.Minimize")
Sorry to say this, but it sounds a bit as if you are just guessing without having a clue of what you are actually doing.HackModford said:I'm going to try it this way now...
Edit: And that sucessfully minimized XBMC
But sound still doesn't work on the app... and when I tried quitting (picodrive in my case) I just got nothing and had to use the pandora button to launch minimenu
Edit: Next I tried this
By the looks of it, the os.system call waits for the application to finish and executes xbmc.executebuiltin only AFTER you have closed the launched application. However, because you don't minimize you cannot see the launched application and therefore cannot terminate it.Code:elif (sys.platform.startswith('linux')): #this minimizes xbmc some apps seems to need it #xbmc.executehttpapi("Action(199)") #xbmc.executebuiltin("XBMC.Minimize") os.system("%s %s" % (launcher["args"], launcher["application"])) #this brings xbmc back #xbmc.executehttpapi("Action(199)") xbmc.executebuiltin("XBMC.Quit")
But that doesn't quit xbmc... next I'm going to try this
I would expect that to function just as the previous case, the application is launched in the background, next xbmc waits for it to terminate (which it doesn't as you can't reach the application).But that doesn't quit xbmc... next I'm going to try this
Code:elif (sys.platform.startswith('linux')): #this minimizes xbmc some apps seems to need it #xbmc.executehttpapi("Action(199)") #xbmc.executebuiltin("XBMC.Minimize") os.system("%s %s" % (launcher["args"], launcher["application"])) #this brings xbmc back #xbmc.executehttpapi("Action(199)") xbmc.executebuiltin("XBMC.Minimize") xbmc.executebuiltin("XBMC.Quitp")
elif (sys.platform.startswith('linux')):
xbmc.executebuiltin("XBMC.Quit")
os.system("%s %s" % (launcher["args"], launcher["application"]))
Yes, that makes perfect sense.HackModford said:No wait this is the current state.
...
Does that make sense?
Haha, no problem It's actually a pretty decent way to learn how stuff works.Oh and you're right... I am guessing and don't really have much of a clue as to what to do :lol:
elif (sys.platform.startswith('linux')):
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
xbmc.executebuiltin("XBMC.Minimize")
os.system("%s %s" % (launcher["args"], launcher["application"]))
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
#xbmc.executebuiltin("XBMC.RestartApp")
#this minimizes xbmc some apps seems to need it
#xbmc.executehttpapi("Action(199)")
print "XBMC Launcher plugin: before minimize"
xbmc.executebuiltin("XBMC.Minimize")
print "XBMC Launcher plugin: after minimize"
os.system("%s %s" % (launcher["args"], launcher["application"]))
print "XBMC Launcher plugin: after application launch"
#this brings xbmc back
#xbmc.executehttpapi("Action(199)")
#xbmc.executebuiltin("XBMC.RestartApp")
I would be very surprised if that actually launches the application as the plugin script indicates that you should first quit xbmc (which should also terminate the plugin script) and then launch the application.HackModford said:Edit:
Okay so I set it to this
Code:elif (sys.platform.startswith('linux')): xbmc.executebuiltin("XBMC.Quit") os.system("%s %s" % (launcher["args"], launcher["application"]))