Posts: 58
Joined: Feb 2010
Reputation:
0
Hi,
Is it possible to have XBMC Live to start the window manager (Fluxbox) silently alongside XBMC? I'm developing a new script and I need to take advantage of having more than one workspace. Of course, I still want XBMC startup as it is now, ie, I don't want the user to notice that the window manager is being loaded.
Thanks
Posts: 1,722
Joined: Sep 2009
Reputation:
20
2010-10-29, 16:12
(This post was last modified: 2010-10-29, 16:46 by outleradam.)
I don't know why you would want to start a graphical interface without interaction from the user... That's the point of a graphical interface, to interact with the user.
One way of doing this would be to start a VNC session (tightvncserver), then set environmental variable DISPLAY=:1, then xinit yourApplication. This would require you to first apt-get install tightvncserver, then run tightvncserver to set the password the first time. After initial setup, tightvncserver can be run to create additional desktop interfaces. They are open for access from other computers using the password.
Posts: 58
Joined: Feb 2010
Reputation:
0
OK, I found out a way. I was just a matter of editing the files /usr/bin/startfluxbox and /usr/bin/runXBMC in order to have XBMC Live to silently start fluxbox and then XBMC. I also needed to edit the fluxbox style file in order to comment out the "background" entried and also the ~/.fluxbox/init file to hide the toolbar.
Thanks!
Posts: 19
Joined: Mar 2010
Reputation:
0
@Spulit: It would be great, if you could post what you exactly changed in the mentioned files, since I would like to do the same.
Thanks!
Posts: 58
Joined: Feb 2010
Reputation:
0
In /usr/bin/startfluxbox, I added:
/usr/bin/xbmc --standalone &
after
# idesk &
In /usr/bin/runXBMC, I commented out everything from:
echo "#!/bin/bash" > /home/$xbmcUser/.xsession
to
chown $xbmcUser:$xbmcUser /home/$xbmcUser/.xsession
In ~/.fluxbox/init, I added:
session.screen0.toolbar.visible: false
Remember to delete the ~/.xsession file before restarting.
Posts: 19
Joined: Mar 2010
Reputation:
0
Thank you very much. I will try it as soon as I can.
Posts: 1
Joined: Feb 2011
Reputation:
0
2011-02-08, 00:05
Hi, everyone,
I was really interested in this kind of solution and these lines were quite helpful. But it didn't work at first try so I started modifiying the lines.
Instead of editing /usr/bin/startfluxbox, I modified ~/.fluxbox/startup as mentioned below. That means I added
/usr/bin/xbmc --standalone &
after
# idesk &
Next I edited /usr/bin/runXBMC as described (but I would try if it is really necessary).
And I leave ~/.fluxbox/init as it is because I find it helpful to have a toolbar in fluxbox and for XBMC in fullscreen-mode it is irrelevant.
Last but not least I deleted the ~/.xsession file.
Now it's quite comfortable: When the computer is powered up it will automatically starts XBMC in fullscreen. If I need e.g. a webbrowser I simple push (on a german keyboard) <alt gr> + <ß> and XBMC toggle into window-mode and I'm able to switch to another desktop.
Thank You for Your tipps,
A Linuxrookie
Posts: 4
Joined: Feb 2011
Reputation:
0
Works great.
But how can I change the DPI settings?
If I set "Xft.dpi: 150" in ~/.xdefault and merge it in ~/.xinitrc, I can't login anymore. There is an endless loop at login tty1. And I have to reinstall the system again because I don't know how to fix it. Undo the changes have no effect.
Posts: 4
Joined: Feb 2011
Reputation:
0
Got it now:
I set the dpi in the file /etc/X11/xorg.conf in the section "Device" with Option "DPI" "150x150".
Cheers