In Xubuntu, how do I remove a startup application that was set in Menu –> Setting –> Settings Manager –> Sessions and Startup without using the GUI? My startup command breaks the gui, and I need to disable it using the command line.
Asked
Active
Viewed 3.0k times
18
Nick
- 579
- 3
- 11
- 21
-
possible duplicate of [how to add a program as startup application from terminal ?](http://askubuntu.com/questions/178567/how-to-add-a-program-as-startup-application-from-terminal) – Ciro Santilli OurBigBook.com Feb 13 '15 at 06:02
2 Answers
28
Quoting the Xfce Docs ("Some of my applications are always started when I login"):
You can also manually delete those files in ~/Desktop/Autostart and ~/.config/autostart.
For example: open a terminal, type
cd ~/.config/autostart
ls
then rm the files that you want to delete.
ignis
- 4,157
- 27
- 27
1
You can disable autostart entries by hiding them with a higher-precedence entry.
If you don't have it yet, create your own autostart folder:
mkdir -p ~/.config/autostart
and then create .desktop files matching the names of the ones you want to disable from /etc/xdg/autostart (or other sources such as /usr/share/gnome/autostart).
For example, disabling print-applet:
cat > ~/.config/autostart/print-applet.desktop <<EOF
[Desktop Entry]
Type=Application
Hidden=true
EOF
Gabriel
- 709
- 7
- 9
GoodGuyNick
- 426
- 4
- 12
-
While this is likely a bug in the way current gnome-session and gio interact, the hiding desktop file will be ignored if it doesn't contain a Type=Application key-value pair as well. – Gabriel Apr 07 '20 at 11:34
-
Also, I wouldn't be surprised if some desktops fail to hide the entry if not providing a Name key as well. – Gabriel Apr 07 '20 at 11:56