Results 1 to 9 of 9

Thread: autostart programs in lubuntu for absolute beginners

  1. #1

    autostart programs in lubuntu for absolute beginners

    Hi
    How do I make e.g. empathy autostart on login in Lubuntu 12.04?
    Apparently it is well documented, http://wiki.lxde.org/en/LXSession#Au...tions_on_login

    Put *.desktop files of those applications in ~/.config/autostart, and they will get executed when the session starts.
    But apparently I'm a moron because I still don't get it... What's a .desktop file and where do I find them? I looked through the /usr/bin folder where I usually find installed apps not showing anywhere else, but there is no hidden files there.

    Please, could somebody please explain it to me as they would to a 3 year old. Thanks.

  2. #2
    Join Date
    Oct 2011
    Location
    ZZ9 Plural Z Alpha
    Beans
    Hidden!
    Distro
    Lubuntu 12.10 Quantal Quetzal

    Re: autostart programs in lubuntu for absolute beginners

    It's very simple. There's a file deep in your home folder called "autostart". You simply add a line to that file that says "@program_nmae", to make it startup.
    Open a terminal and run

    Code:
    leafpad ~/.config/lxsession/LXDE/autostart
    This will open the autostart file in a text editor. Simply add the line

    Code:
    @empathy
    Save and close. Upon reboot empathy should start right up.
    GNU/Linux Notes || Linux Command Line Learning Resources

    Copy.com offers 15 GB free cloud storage plus 5 GB for both of us when you follow this referral link.

  3. #3

    Re: autostart programs in lubuntu for absolute beginners

    that didn't seem to work...

    Here is what I did:
    From the terminal
    Code:
    leafpad ~/.config/lxsession/LXDE/autostart
    I wrote in @empathy as you said, and saved, but since there were since the folder did not exist I saved the file as autostart

    I didn't work so I tried copy and pasting the file into /home/.config/autostart/
    but that didn't work either.


    I just found another page/tutorial on the net (and now I cannot refind it) where they mention to copy the file from /usr/share/applications in to /home/.config/autostart and that seems to work fine, I just logged out/in and empathy is starting up automatically, now.

  4. #4
    Join Date
    Jun 2011
    Location
    United Kingdom
    Beans
    Hidden!
    Distro
    Lubuntu Development Release

    Re: autostart programs in lubuntu for absolute beginners

    For future reference, sometimes programs don't have a .desktop.

    Code:
    mkdir -p ~/.config/lxsession/LXDE/
    touch ~/.config/lxsession/LXDE/autostart
    leafpad ~/.config/lxsession/LXDE/autostart
    Should work. I imagine it got saved in the wrong place last time.

  5. #5
    Join Date
    May 2012
    Beans
    286
    Distro
    Ubuntu Development Release

    Re: autostart programs in lubuntu for absolute beginners

    Add your startup applications in Lubuntu 12.10 like this:
    1. Go to /home/USERNAME
    2. Press Ctrl+h
    3. Go to /home/USERNAME/.config
    4. Create the folder autostart
    5. Go to the menu > right-click > add to desktop
    6. Move shortcut to /home/USERNAME/.config/autostart
    7. Restart Lubuntu
    See also: http://wiki.lxde.org/en/Autostart

  6. #6
    Join Date
    Oct 2008
    Location
    Yorkshire. England
    Beans
    206
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: autostart programs in lubuntu for absolute beginners

    Quote Originally Posted by Lyfang View Post
    Add your startup applications in Lubuntu 12.10 like this:
    1. Go to /home/USERNAME
    2. Press Ctrl+h
    3. Go to /home/USERNAME/.config
    4. Create the folder autostart
    5. Go to the menu > right-click > add to desktop
    6. Move shortcut to /home/USERNAME/.config/autostart
    7. Restart Lubuntu
    See also: http://wiki.lxde.org/en/Autostart
    Thanks Lyfang - my autostart folder was already there, just didn't know where to find it.

    I needed to add "Redshift" to my startup as I had been starting it manually (for ages)since moving to Lubuntu from Ubuntu.
    Thanks again
    Martin
    If you want to test the depth of the water .........don't use both feet !

  7. #7
    Join Date
    Jan 2010
    Beans
    97
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: autostart programs in lubuntu for absolute beginners

    I was unable to get redshift to work with this method. It doesn't work at all and I've learned that it's because it relies on gnome-clock for something. So I need to not just run redshift, but to run this command: redshift -l lat:lon (my lattitude and longitude of course). how do I add this to startup?

  8. #8
    Join Date
    Oct 2008
    Location
    Yorkshire. England
    Beans
    206
    Distro
    Lubuntu 12.04 Precise Pangolin

    Re: autostart programs in lubuntu for absolute beginners

    There is probably an easier way than this but this is what I did and it worked.
    I pasted a copy of the Redshift Icon onto my desktop opened /home/martin/.config/autostart dragged the Icon into the autostart folder saved and exited.
    BUT MAKE SURE you have added you Location Details mine was "gtk-redshift -l 53.48:1.33"

    If its already in your autostart, you can add your location by right clicking the icon and opening with leafpad and adding the detail - mine is like

    [Desktop Entry]
    Version=1.0
    Name=Redshift
    GenericName=Color temperature adjustment
    Comment=Color temperature adjustment tool
    Exec=gtk-redshift -l 53.48:1.33
    Icon=redshift
    Terminal=false
    Type=Application
    Categories=Utility;
    StartupNotify=true

    It started on my next boot - hope this helps
    Martin
    If you want to test the depth of the water .........don't use both feet !

  9. #9
    Join Date
    Jan 2013
    Beans
    2

    Re: autostart programs in lubuntu for absolute beginners

    Hi!

    The "sleep 20;transmission-gtk -m" command work fine in command line.
    But not in the "etc/xdg/lxsession/Lubuntu/autostart" .

    I would like to use this "primer" solution.
    Cuold you help?
    thx w

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
  •