User avatar
KaynabX
Posts: 22
Joined: Wed Nov 02, 2016 9:34 am
Contact: Twitter YouTube

How to start a program at boot

Thu Nov 03, 2016 10:53 am

Hello world !

Since Gnome Tweak Tool has been removed from Solus, I was wondering how I could set some scripts/programs to start with boot.

Thanks in advance.


Regards,
KaynabX
Laptop : HP Elitebook 840 G2
Processor : Intel Core i7-5600U @ 3.2GHz
Graphic Card : AMD Radeon R7 270MX
Operating System : Solus 1.2.1
Shell & Terminal : Fish & rxvt-unicode

timbba
Posts: 38
Joined: Fri Jan 08, 2016 9:25 pm

Re: How to start a program at boot

Thu Nov 03, 2016 11:30 am

At least, I can still find gnome-tweak-tool from repositories:

Code: Select all

$ sudo eopkg info gnome-tweak-tool
Installed package:
Name                : gnome-tweak-tool, version: 3.20.1, release: 12
Summary             : A tool to customize advanced GNOME 3 options.
Description         : A tool to customize advanced GNOME 3 options.
Licenses            : GPLv2+
Component           : desktop.gnome
Dependencies        : 
Distribution        : Solus, Dist. Release: 1
Architecture        : x86_64, Installed Size: 1.07 MB
Reverse Dependencies: 

Package found in Solus repository:
Name                : gnome-tweak-tool, version: 3.20.1, release: 12
Summary             : A tool to customize advanced GNOME 3 options.
Description         : A tool to customize advanced GNOME 3 options.
Licenses            : GPLv2+
Component           : desktop.gnome
Dependencies        : 
Distribution        : Solus, Dist. Release: 1
Architecture        : x86_64, Installed Size: 1.07 MB, Package Size: 204.00 KB
Reverse Dependencies: 

gnome-tweak-tool package is not found in source repositories

But you can manually add applications to startup list by creating folder "~/.config/autostart" and then just copying *.desktop files into it. For example:

Code: Select all

mkdir -p ~/.config/autostart
cp /usr/share/applications/plank.desktop ~/.config/autostart/

User avatar
KaynabX
Posts: 22
Joined: Wed Nov 02, 2016 9:34 am
Contact: Twitter YouTube

Re: How to start a program at boot

Thu Nov 03, 2016 6:46 pm

timbba wrote:At least, I can still find gnome-tweak-tool from repositories:

Code: Select all

$ sudo eopkg info gnome-tweak-tool
Installed package:
Name                : gnome-tweak-tool, version: 3.20.1, release: 12
Summary             : A tool to customize advanced GNOME 3 options.
Description         : A tool to customize advanced GNOME 3 options.
Licenses            : GPLv2+
Component           : desktop.gnome
Dependencies        : 
Distribution        : Solus, Dist. Release: 1
Architecture        : x86_64, Installed Size: 1.07 MB
Reverse Dependencies: 

Package found in Solus repository:
Name                : gnome-tweak-tool, version: 3.20.1, release: 12
Summary             : A tool to customize advanced GNOME 3 options.
Description         : A tool to customize advanced GNOME 3 options.
Licenses            : GPLv2+
Component           : desktop.gnome
Dependencies        : 
Distribution        : Solus, Dist. Release: 1
Architecture        : x86_64, Installed Size: 1.07 MB, Package Size: 204.00 KB
Reverse Dependencies: 

gnome-tweak-tool package is not found in source repositories

But you can manually add applications to startup list by creating folder "~/.config/autostart" and then just copying *.desktop files into it. For example:

Code: Select all

mkdir -p ~/.config/autostart
cp /usr/share/applications/plank.desktop ~/.config/autostart/
Hello !

Thanks for the answer, I'll look into it ASAP :)

Regards,
KaynabX
Laptop : HP Elitebook 840 G2
Processor : Intel Core i7-5600U @ 3.2GHz
Graphic Card : AMD Radeon R7 270MX
Operating System : Solus 1.2.1
Shell & Terminal : Fish & rxvt-unicode

Ghwomb
Posts: 1
Joined: Thu Mar 09, 2017 7:56 am

Re: How to start a program at boot

Thu Mar 09, 2017 7:58 am

I just want to confirm that it works great.

orschiro
Posts: 35
Joined: Tue Jun 20, 2017 7:12 pm

Re: How to start a program at boot

Thu Jun 22, 2017 1:47 pm

Just to verify, there is no GUI setting in Budgie to start a program at boot?

sunnyflunk
Development Team
Posts: 3007
Joined: Sun Mar 13, 2016 11:35 pm

Re: How to start a program at boot

Fri Jun 23, 2017 3:50 am

orschiro wrote:
Thu Jun 22, 2017 1:47 pm
Just to verify, there is no GUI setting in Budgie to start a program at boot?
You can use gnome-tweak-tool to basically do that for you (it will only autostart .desktop entries).

orschiro
Posts: 35
Joined: Tue Jun 20, 2017 7:12 pm

Re: How to start a program at boot

Fri Jun 23, 2017 5:03 am

Thank you!

I just found "Tweak Tool" preinstalled in the menu and indeed it addresses my problem.

I assume once Budgie is moving to Qt, it will provide its own GUI to start a program at boot.

sunnyflunk
Development Team
Posts: 3007
Joined: Sun Mar 13, 2016 11:35 pm

Re: How to start a program at boot

Sat Jun 24, 2017 4:16 am

orschiro wrote:
Fri Jun 23, 2017 5:03 am
Thank you!

I just found "Tweak Tool" preinstalled in the menu and indeed it addresses my problem.

I assume once Budgie is moving to Qt, it will provide its own GUI to start a program at boot.
I imagine that will be the case

User avatar
GumbyDamnIt!
Posts: 150
Joined: Wed Jan 11, 2017 5:59 pm
Location: Republic of Texas

Re: How to start a program at boot

Fri Jul 07, 2017 7:47 am

I don't personally use the Gnome Tweak Tool and I'm unsure of its continued efficacy after Budgie moves to QT. Regardless, it is a simple matter to use a text editor to construct a *.desktop file to launch your program. Here is the launcher that I use for conky:
  • [Desktop Entry]
    Type=Application
    Encoding=UTF-8
    Version=1.0
    Name=No Name
    Name[en_US]=conky.desktop
    Exec=/usr/bin/conky -p 10
    X-GNOME-Autostart-enabled=true
Use the above as a template. Change the name of the file, as well as the "Name[en_us]=conky.desktop" to something relevant, keeping in mind that the file name must use the .desktop suffix. Next, change the "Exe=" path to point to your desired program. Change any other entries as necessary.

BTW - conky's built-in "-p 10" switch tells it to pause for ten seconds, before starting.

Once you are happy with the configuration of your launcher, all that remains to copy this file to the Home/.config/autostart folder. That's it; it's as simple as that!

User avatar
Justin
Development Team
Posts: 3618
Joined: Mon Jul 28, 2014 10:42 am
Location: Adelaide, Australia
Contact: Website Google+ Twitter

Re: How to start a program at boot

Fri Jul 07, 2017 8:11 am

GumbyDamnIt! wrote:
Fri Jul 07, 2017 7:47 am
I don't personally use the Gnome Tweak Tool and I'm unsure of its continued efficacy after Budgie moves to QT. Regardless, it is a simple matter to use a text editor to construct a *.desktop file to launch your program. Here is the launcher that I use for conky:
  • [Desktop Entry]
    Type=Application
    Encoding=UTF-8
    Version=1.0
    Name=No Name
    Name[en_US]=conky.desktop
    Exec=/usr/bin/conky -p 10
    X-GNOME-Autostart-enabled=true
Use the above as a template. Change the name of the file, as well as the "Name[en_us]=conky.desktop" to something relevant, keeping in mind that the file name must use the .desktop suffix. Next, change the "Exe=" path to point to your desired program. Change any other entries as necessary.

BTW - conky's built-in "-p 10" switch tells it to pause for ten seconds, before starting.

Once you are happy with the configuration of your launcher, all that remains to copy this file to the Home/.config/autostart folder. That's it; it's as simple as that!
Soon you won't need to construct a .desktop file, thanks to the work of Cybre, within the Budgie settings there will be a way to start a command at login to the desktop :)

Return to “Tutorials”