Results 1 to 4 of 4

Thread: One app only...

  1. #1
    Join Date
    Jun 2007
    Location
    Somewhere on a island...
    Beans
    185
    Distro
    Ubuntu

    Post One app only...

    HI

    Is it possibly to create a custom x-session that will automatically login & start xcompmgr with only one app like google chrome or xchat full screen...
    [ THE FEEL GOOD DRAG FROM INSIDE THE UNWINDING CABLE CAR ]

  2. #2
    Join Date
    Feb 2011
    Location
    Somewhere...
    Beans
    1,543
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: One app only...

    Yes you can. Just create a file in /usr/share/xsessions/ . For example, for a chromium session, create a file in that folder named chromium.desktop and put these in the file:
    Code:
    [Desktop Entry]
    Name=Chromium
    Comment=This session starts Chromium
    Exec=/home/username/chromium.sh
    TryExec=/home/username/chromium.sh
    Icon=
    Type=Application
    And this in your chromium.sh file in your home folder:

    Code:
    xcompmgr &
    chromium
    logout
    I don't use Chromium, so I don't know how to start it in fullscreen, but there should be a command line flag for it.
    Last edited by zombifier25; October 30th, 2012 at 02:59 PM.

  3. #3
    Join Date
    Jun 2007
    Location
    Somewhere on a island...
    Beans
    185
    Distro
    Ubuntu

    Re: One app only...

    Quote Originally Posted by zombifier25 View Post
    Yes you can. Just create a file in /usr/share/xsessions/ . For example, for a chromium session, create a file in that folder named chromium.desktop and put these in the file:
    Code:
    [Desktop Entry]
    Name=Chromium
    Comment=This session starts Chromium
    Exec=/home/username/chromium.sh
    TryExec=/home/username/chromium.sh
    Icon=
    Type=Application
    And this in your chromium.sh file in your home folder:

    Code:
    xcompmgr &
    chromium
    logout
    I don't use Chromium, so I don't know how to start it in fullscreen, but there should be a command line flag for it.
    Thanks for the reply

    So once I have my custom x-session created, how can I set my system to auto-login to it
    [ THE FEEL GOOD DRAG FROM INSIDE THE UNWINDING CABLE CAR ]

  4. #4
    Join Date
    Feb 2011
    Location
    Somewhere...
    Beans
    1,543
    Distro
    Ubuntu 13.10 Saucy Salamander

    Re: One app only...

    Add these 2 lines (or if they exists, modify them) to the [SeatDefaults] part of /etc/lightdm/lightdm.conf:
    Code:
    autologin-user=yourusername
    user-session=chromium

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •