Skip to content

Why are some things autostarted via /etc/xdg/autostart? Is it safe to remove them?

This is what's currently in that folder:

-rw-r--r-- 1 root root  305 Mar 25  2015 at-spi-dbus-bus.desktop
-rw-r--r-- 1 root root 3.2K Jun  7 12:27 blueman.desktop
-rw-r--r-- 1 root root  831 Apr 23  2014 clipit-startup.desktop
-rw-r--r-- 1 root root 6.4K Apr 13 14:14 gnome-keyring-gpg.desktop
-rw-r--r-- 1 root root 7.9K Apr 13 14:14 gnome-keyring-pkcs11.desktop
-rw-r--r-- 1 root root 7.5K Apr 13 14:14 gnome-keyring-secrets.desktop
-rw-r--r-- 1 root root 6.1K Apr 13 14:14 gnome-keyring-ssh.desktop
-rw-r--r-- 1 root root 7.6K Oct  3  2013 gsettings-data-convert.desktop
-rw-r--r-- 1 root root 5.6K Aug 27 19:15 nm-applet.desktop

Let's take nm-applet for example. Why is it inside that folder? What put it there? I use my i3 config to autostart it, could any problems arise from that double autostarting? Is it safe to remove everything I autostart myself from this folder?

0 points2 comments
Open on Reddit
About this post
Posted
Archived
Score
0 · 100% up
Kind
Text
ID
3mobru

Author

12
posts
36
comments
0
media
View profile

2 comments

/etc contains system wide configuration files. When you install network-manager-applet it assumes that you want it to start on every user. You can remove it of course if you don't want that. Make a backup of the .desktop though if it contains a special execute command.

Some applications will have problems if they are started twice. But in case of nm-applet I am guessing it looks if there are instances running before it starts.

3 points

Not everything listed there is auto-started, at least for me on XFCE.

For example, I have xfce4-notes-autostart.desktop at that location, but no there's no related process running and Session and Startup show me that Notes is unticked.

To answer your question of what put it there. Try:

pkgfile -s /etc/xdg/autostart/nm-applet.desktop

Now you know what you installed that gave you that file.

In regards to i3, I suspect you are fine, unless you are using i3 somehow in conjunction with a DE that obeys XDG standards. Perhaps your journal may clue you in as whether or not you do indeed have a double-start issue.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.