Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
You can change the script to run on :2 (or :3)
"xinit $HOME/.netflix -- :2 &&"
and leave :1 free for the Desktop session and even run Netflix, BPM and Desktop session all three at the same time.
First Steamos :0, and switching to Desktop :1, then from Desktop starting a third Youtube :2 session and back to Steamos to start a fourth Netflix :3 session. (and some Phoronix viewing on the Desktop session.)
Then closing them one by one.
Yeah, I kinda lost my way in there switching from session to session and it takes few seconds to make the switch (with Ctrl +Alt +F#) so is a bit confusing. Also some of my F keys are a bit wonky so...
And again, the video is crap, I know :(
https://www.youtube.com/watch?v=W3E_z5VnNrg&feature=youtu.be
I want to try to make a script which can be used by either a lot of different sites or a lot of different applications. Imagine having multiple desktop environments, multiple media players, multiple voip applications and multiple streaming sites available to you in Steam.
This is due to the way Steam parses the Exec line in desktop files. It stops processing once it hits a space or hits the end of the line so the parameters are not actually grabbed. Also, non-Steam apps have to have a unique executable. In this case, once an app has been added that uses dm-tool, no other desktop files using dm-tool will be listed. You should put the dm-tool command into its own script with a unique filename.
dm-tool always errors out for me when I try to set the session parameter. Using the equivalent dbus-send command and specifying the second string hasn't done anything different in my testing. It always ends up launching the default session for that user. I would think the only way around this would be to edit the session that will be used, using the technique discovered yesterday, before running dm-tool to start the session.
As for the X display problem, it looks like scanning through the /tmp directory is the main way that scripts check for the next available X display. The following page can possibly be used as a reference.
https://wiki.archlinux.org/index.php/Running_program_in_separate_X_display
How is the performance with Xephyr?
I still have to figure it out why it chokes for me when I use it for Netflix.
With Youtube it works perfectly so far, but with Netflix I can't use the gamepad to start it and I have to insist two or three times with the mouse to get it to start.
Sometimes just doesn't want to start...
First one Youtube (this one is working )
https://www.youtube.com/watch?v=XpOqHDOHYUc&feature=youtu.be
Then Netflix:
https://www.youtube.com/watch?v=Tu7TqxMZGes&feature=youtu.be
I use the same script for both, just the google address is different.
Anyway, it was apparently the way the address was entered, is it working now.
So far is working just fine and the whole method is very clean.
https://www.youtube.com/watch?v=a-NXNaZeKwc&feature=youtu.be
Startx is using something similar:
Also, I have a couple of recommendations that might help improve the script. The first is a way to get the X display resolution automatically. I found that the following works for getting the resolution information from display :0.
WIN_RES is in the form of WIDTHxHEIGHT and COMMA_WIN_RES is WIDTH,HEIGHT.
Also, I wouldn't think that killall would need to be used twice to close Xephyr. What I have been doing is grabbing the Xephyr PID after launching the process in the background and killing it directly.
On my system simply killing zephyr it works a bit randomly, that's why I had to force kill it with -9, can't figure it out why.
And it does the same with kill $XEPHYR_PID so I end up with killall -9 anyway.
There is also something bugging me, but just a little; running (especially) Netflix feels a bit sluggish at times compared with running on a fresh new session.
I don't seem to get this with Youtube and some other less intensive apps, but with some more demanding apps there is a slight loss of performance and random hangs.
All and all though I think this is the way to go, it feels more "right".
Right now this is my script, I still need to change a few things:
It can be triggered from the scripts of course, ex:
Youtube is more suited to be controlled with a gamepad, it has several useful keyboards control while basically Netflix requires a mouse.
(this is for Xbox 360 wired controller)
http://pastebin.com/raw.php?i=Y1sqCpUt