There is lots of advice on how to make a program autostart, but the thing I need now is the opposite of that: I want to find out why a certain program starts on boot.
The use case is as follows: After some messing around with xbindkeys
I decided to shut down Ubuntu, take a snapshot of the VM, and then make xbindkeys
autostart. However, xbindkeys
was running already after the boot. How do I find out why?
Tried systemctl
, looked into ~/.bashrc
and ~/.profile
. Not there. pstree
says xbindkeys
descends directly from systemd
.
Ubuntu 18.04.3 LTS.
when you install the package
xbindkeys
sudo apt install xbindkeys
it creates a .desktop file in your users home directory in
$HOME/.config/autostart/
with below contentsIf you observe the
Exec
line.. this .desktop file will executexbindkeys_autostart
which is actually/usr/bin/xbindkeys_autostart
with below contentsfor example manually added autostart programmes with directly entering commands in startup application list is like below
you can see the difference between both of these .desktop files for the line "Hidden" which is false for one and true for other
if you make the
Hidden=true
toHidden=false
you can see it in GUI startupapplications list like below