What isn't xinitrc or xsession executing? (re: uxlaunch, autostarting XBMC)
#1
I'm running Ubuntu 12.04 and have installed "minimal" XBMC (compiled from the latest GIT, etc).

Anyways, I'm using uxlaunch to autostart /usr/bin/xbmc-standalone but I'd like to run "nvidia-settings -l" before XBMC starts. I've created $HOME/.xinitrc and $HOME/.xsession but neither are running.

Am I doing something wrong? Does uxlaunch bypass these startup scripts?

Thanks for any help.
Reply
#2
AFAIK uxlaunch does not care about .xinit or .xsession files, only xinit does.

You can use xinit or startx to launch your custom session, but you have to enable it in /etc/X11/Xwrapper.config by setting "allowed_users" to "anybody":

/etc/X11/Xwrapper.config
Code:
allowed_users=anybody


/path/to/your/xinitrc
Code:
#!/bin/sh

nvidia-settings -l

exec /usr/bin/xbmc-standalone

/usr/bin/startxbmc
Code:
#!/bin/sh
exec startx /etc/X11/Xsession /path/to/your/xinitrc -- :0 vt9 -quiet -br -nolisten tcp

Make sure your scripts are executable:
Code:
chmod ugo+x /path/to/your/xinitrc /usr/bin/startxbmc

Now you can just use...
Code:
startxbmc
... to launch XBMC as the current user, or ...
Code:
su -c /usr/bin/startxbmc xbmc
... to start XBMC as user xbmc.

You can probably accomplish the same thing by providing a custom .desktop file for uxlaunch. However I never used uxlaunch, so I can't help you with that.


Reply

Logout Mark Read Team Forum Stats Members Help
What isn't xinitrc or xsession executing? (re: uxlaunch, autostarting XBMC)0