How To Create A XBMC Login Session

Here is a guide that will show you how to create a login account for XBMC. It will allow you to select XBMC when you login and after entering your password XBMC will started automatically.

To create the account and to make it show in your login screen you need to add two files. To make the files open a terminal window (press Ctrl+Alt+T) and copy+paste the following line:

sudo gedit /usr/share/xsessions/xbmc.desktop

When the text file is opened copy+paste the following lines:

[Desktop Entry]

When the text is added save and close the xbmc.desktop file and now you need to create the file for the XBMC session. In your terminal window copy+paste the following line:

sudo gedit /usr/bin/xbmc-session

Now copy+paste the following lines:


# add some initialization stuff here (if necessary)
xbmc --standalone

Finally make the session script executable, copy+paste the following line in your terminal window:

sudo chmod +x /usr/bin/xbmc-session

Now logout and select XBMC from your login manager’s session list.

7 Responses to How To Create A XBMC Login Session

  • User says:

    how to connect xbmc to internet, Please tell me,
    i have tried alot of time but unsuccessful.


    • tinuz says:

      You change some network settings under Setting -> Network. Can you be a bit more clear about the trying to connect to internet. Why you want to connect and what do you want to do??

  • Grouty says:

    I get this error can you help? Ubuntu 11.10.

    (gedit:8531): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel’, but failed: Failed to create file ‘/root/.local/share/recently-used.xbel.2USF4V’: No such file or directory

    (gedit:8531): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel’, but failed: No such file or directory

    • tinuz says:

      Sorry for the late reply but the error message doesn’t tell me much… i tried doing a google search but that didn’t help with finding a fix. Sorry 🙁

    • Alain Wolf says:

      This error can savely be ignored, its just the editor trying to save a “recent files” list. But its not there as you wotk with the root user an not with your own profile.

      If its really bothering you can do a “sudo mkdir -p /root/.local/share/”.

      Anyway its unrelated and does not affect what is done here.

  • yt views says:

    Hi there, I enjoy reading all of your article. I like to write a little comment to support you.

  • web site says:

    Appreciation to my father who stated to me concerning this blog, this
    webpage is truly awesome.

Leave a Reply

Your email address will not be published. Required fields are marked *

three + 14 =