How to find out what autostarted a program?Added `startx` to autostart list, what to do now?How to stop autostart of an installed program?Conditional program launcherHow I can set program autostart to my second desktop?Kubuntu autostart program in a specific desktopHow to find commands for autostarting applications?How find out what is autostarting my terminal?

Want to publish unpublished work found in an auction storage unit

Difference between "* and "+ registers in +clipboard VIM?

Film about the USA being run by fake videos of the president after his kidnapping

How do oases form in the middle of the desert?

Why does California seem to have much more aggressive Consumer Protection and Safety Legislation?

Load extra fonts with lualatex

A short novel about reaching absolute zero

What is the difference between "ещё" and "больше"?

Is there any plausible in-between of Endotherms and Ectotherms?

Is it OK for a Buddhist teacher to charge their students an hourly rate for their time?

Is using Observer pattern a good idea while building a Chess Game?

Is this medieval picture of hanging 5 royals showing an historical event?

What are the differences between the versions on lubuntu download page?

Does the item you apply the Replicate Magic item infusion change its shape to fit the magic item you chose?

Why doesn't the road lose its thickness to the tyre?

How do professors and lecturers learn to teach?

Distributed expansion gaps in solid hardwood flooring

I wasted six years of my life getting a PhD degree. What should I do, and how will I survive?

'The Queen That Never Was' or 'The Queen Who Never Was'?

Making one list from two lists by grouping them in a special way

Is harmony based on intervals rather than chords?

Interval variables in MIP

How do I install this weird looking i9 9900K I bought?

Does a patron have to know their warlock?



How to find out what autostarted a program?


Added `startx` to autostart list, what to do now?How to stop autostart of an installed program?Conditional program launcherHow I can set program autostart to my second desktop?Kubuntu autostart program in a specific desktopHow to find commands for autostarting applications?How find out what is autostarting my terminal?






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;









1


















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.










share|improve this question

























  • Hi.. your main question seems to be why xbinkeys auto starting? if yes the answer is easy to explain..

    – PRATAP
    Sep 29 at 4:06

















1


















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.










share|improve this question

























  • Hi.. your main question seems to be why xbinkeys auto starting? if yes the answer is easy to explain..

    – PRATAP
    Sep 29 at 4:06













1













1









1








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.










share|improve this question














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.







autostart






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Sep 28 at 19:33









sigilsigil

1535 bronze badges




1535 bronze badges















  • Hi.. your main question seems to be why xbinkeys auto starting? if yes the answer is easy to explain..

    – PRATAP
    Sep 29 at 4:06

















  • Hi.. your main question seems to be why xbinkeys auto starting? if yes the answer is easy to explain..

    – PRATAP
    Sep 29 at 4:06
















Hi.. your main question seems to be why xbinkeys auto starting? if yes the answer is easy to explain..

– PRATAP
Sep 29 at 4:06





Hi.. your main question seems to be why xbinkeys auto starting? if yes the answer is easy to explain..

– PRATAP
Sep 29 at 4:06










1 Answer
1






active

oldest

votes


















0



















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 contents



[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=xbindkeys
Comment=Start xbindkeys
Exec=xbindkeys_autostart
Terminal=false
Type=Application
Categories=
GenericName=
Hidden=true


If you observe the Exec line.. this .desktop file will execute xbindkeys_autostart which is actually /usr/bin/xbindkeys_autostart with below contents



#!/bin/bash

set -e
set -u
set -E

PROG="/usr/bin/xbindkeys"
NOAUTO="$HOME/.xbindkeys.noauto"

# This file autostarts xbindkeysrc if the user (or system) has a config
# for it AND does NOT Have a .xbindkeys.noauto in his homedir.

# we only run if there is no NOAUTO file
if ! [[ -f $NOAUTO ]] && [[ -x $PROG ]]; then
# User config wins over system config
# guile config wins over classic config
for cfile in "/etc/xbindkeysrc" "$HOME/.xbindkeysrc" "$HOME/.xbindkeysrc.scm"; do
if [[ -f $cfile ]] || [[ -L $cfile ]]; then
CONF="$cfile"
fi
done

# Run $PROG - if it has been configured
if [ -n "$CONF" ]; then
$PROG -f $CONF
fi
fi


for example manually added autostart programmes with directly entering commands in startup application list is like below



enter image description here



you can see the difference between both of these .desktop files for the line "Hidden" which is false for one and true for other



enter image description here



enter image description here



if you make the Hidden=true to Hidden=false you can see it in GUI startupapplications list like below



enter image description here






share|improve this answer

























  • In my case it seems to be /etc/xdg/autostart/, not $HOME/.config/autostart/. The rest of your answer stands. Still curious about the general algorithm for such things, though.

    – sigil
    Sep 29 at 12:07












  • etc xdg for all users......... .config for user..

    – PRATAP
    Sep 29 at 12:25












  • i still doubt why it went to /etc/xdg/ in your case.. may be manual entry? if possible purge xbindkeys and then install xbindkeys.. and see if it is still created in /etc/xdg

    – PRATAP
    Sep 29 at 12:29












Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);














draft saved

draft discarded
















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177356%2fhow-to-find-out-what-autostarted-a-program%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown


























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0



















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 contents



[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=xbindkeys
Comment=Start xbindkeys
Exec=xbindkeys_autostart
Terminal=false
Type=Application
Categories=
GenericName=
Hidden=true


If you observe the Exec line.. this .desktop file will execute xbindkeys_autostart which is actually /usr/bin/xbindkeys_autostart with below contents



#!/bin/bash

set -e
set -u
set -E

PROG="/usr/bin/xbindkeys"
NOAUTO="$HOME/.xbindkeys.noauto"

# This file autostarts xbindkeysrc if the user (or system) has a config
# for it AND does NOT Have a .xbindkeys.noauto in his homedir.

# we only run if there is no NOAUTO file
if ! [[ -f $NOAUTO ]] && [[ -x $PROG ]]; then
# User config wins over system config
# guile config wins over classic config
for cfile in "/etc/xbindkeysrc" "$HOME/.xbindkeysrc" "$HOME/.xbindkeysrc.scm"; do
if [[ -f $cfile ]] || [[ -L $cfile ]]; then
CONF="$cfile"
fi
done

# Run $PROG - if it has been configured
if [ -n "$CONF" ]; then
$PROG -f $CONF
fi
fi


for example manually added autostart programmes with directly entering commands in startup application list is like below



enter image description here



you can see the difference between both of these .desktop files for the line "Hidden" which is false for one and true for other



enter image description here



enter image description here



if you make the Hidden=true to Hidden=false you can see it in GUI startupapplications list like below



enter image description here






share|improve this answer

























  • In my case it seems to be /etc/xdg/autostart/, not $HOME/.config/autostart/. The rest of your answer stands. Still curious about the general algorithm for such things, though.

    – sigil
    Sep 29 at 12:07












  • etc xdg for all users......... .config for user..

    – PRATAP
    Sep 29 at 12:25












  • i still doubt why it went to /etc/xdg/ in your case.. may be manual entry? if possible purge xbindkeys and then install xbindkeys.. and see if it is still created in /etc/xdg

    – PRATAP
    Sep 29 at 12:29















0



















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 contents



[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=xbindkeys
Comment=Start xbindkeys
Exec=xbindkeys_autostart
Terminal=false
Type=Application
Categories=
GenericName=
Hidden=true


If you observe the Exec line.. this .desktop file will execute xbindkeys_autostart which is actually /usr/bin/xbindkeys_autostart with below contents



#!/bin/bash

set -e
set -u
set -E

PROG="/usr/bin/xbindkeys"
NOAUTO="$HOME/.xbindkeys.noauto"

# This file autostarts xbindkeysrc if the user (or system) has a config
# for it AND does NOT Have a .xbindkeys.noauto in his homedir.

# we only run if there is no NOAUTO file
if ! [[ -f $NOAUTO ]] && [[ -x $PROG ]]; then
# User config wins over system config
# guile config wins over classic config
for cfile in "/etc/xbindkeysrc" "$HOME/.xbindkeysrc" "$HOME/.xbindkeysrc.scm"; do
if [[ -f $cfile ]] || [[ -L $cfile ]]; then
CONF="$cfile"
fi
done

# Run $PROG - if it has been configured
if [ -n "$CONF" ]; then
$PROG -f $CONF
fi
fi


for example manually added autostart programmes with directly entering commands in startup application list is like below



enter image description here



you can see the difference between both of these .desktop files for the line "Hidden" which is false for one and true for other



enter image description here



enter image description here



if you make the Hidden=true to Hidden=false you can see it in GUI startupapplications list like below



enter image description here






share|improve this answer

























  • In my case it seems to be /etc/xdg/autostart/, not $HOME/.config/autostart/. The rest of your answer stands. Still curious about the general algorithm for such things, though.

    – sigil
    Sep 29 at 12:07












  • etc xdg for all users......... .config for user..

    – PRATAP
    Sep 29 at 12:25












  • i still doubt why it went to /etc/xdg/ in your case.. may be manual entry? if possible purge xbindkeys and then install xbindkeys.. and see if it is still created in /etc/xdg

    – PRATAP
    Sep 29 at 12:29













0















0











0









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 contents



[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=xbindkeys
Comment=Start xbindkeys
Exec=xbindkeys_autostart
Terminal=false
Type=Application
Categories=
GenericName=
Hidden=true


If you observe the Exec line.. this .desktop file will execute xbindkeys_autostart which is actually /usr/bin/xbindkeys_autostart with below contents



#!/bin/bash

set -e
set -u
set -E

PROG="/usr/bin/xbindkeys"
NOAUTO="$HOME/.xbindkeys.noauto"

# This file autostarts xbindkeysrc if the user (or system) has a config
# for it AND does NOT Have a .xbindkeys.noauto in his homedir.

# we only run if there is no NOAUTO file
if ! [[ -f $NOAUTO ]] && [[ -x $PROG ]]; then
# User config wins over system config
# guile config wins over classic config
for cfile in "/etc/xbindkeysrc" "$HOME/.xbindkeysrc" "$HOME/.xbindkeysrc.scm"; do
if [[ -f $cfile ]] || [[ -L $cfile ]]; then
CONF="$cfile"
fi
done

# Run $PROG - if it has been configured
if [ -n "$CONF" ]; then
$PROG -f $CONF
fi
fi


for example manually added autostart programmes with directly entering commands in startup application list is like below



enter image description here



you can see the difference between both of these .desktop files for the line "Hidden" which is false for one and true for other



enter image description here



enter image description here



if you make the Hidden=true to Hidden=false you can see it in GUI startupapplications list like below



enter image description here






share|improve this answer














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 contents



[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=xbindkeys
Comment=Start xbindkeys
Exec=xbindkeys_autostart
Terminal=false
Type=Application
Categories=
GenericName=
Hidden=true


If you observe the Exec line.. this .desktop file will execute xbindkeys_autostart which is actually /usr/bin/xbindkeys_autostart with below contents



#!/bin/bash

set -e
set -u
set -E

PROG="/usr/bin/xbindkeys"
NOAUTO="$HOME/.xbindkeys.noauto"

# This file autostarts xbindkeysrc if the user (or system) has a config
# for it AND does NOT Have a .xbindkeys.noauto in his homedir.

# we only run if there is no NOAUTO file
if ! [[ -f $NOAUTO ]] && [[ -x $PROG ]]; then
# User config wins over system config
# guile config wins over classic config
for cfile in "/etc/xbindkeysrc" "$HOME/.xbindkeysrc" "$HOME/.xbindkeysrc.scm"; do
if [[ -f $cfile ]] || [[ -L $cfile ]]; then
CONF="$cfile"
fi
done

# Run $PROG - if it has been configured
if [ -n "$CONF" ]; then
$PROG -f $CONF
fi
fi


for example manually added autostart programmes with directly entering commands in startup application list is like below



enter image description here



you can see the difference between both of these .desktop files for the line "Hidden" which is false for one and true for other



enter image description here



enter image description here



if you make the Hidden=true to Hidden=false you can see it in GUI startupapplications list like below



enter image description here







share|improve this answer













share|improve this answer




share|improve this answer










answered Sep 29 at 4:32









PRATAPPRATAP

7,8644 gold badges12 silver badges48 bronze badges




7,8644 gold badges12 silver badges48 bronze badges















  • In my case it seems to be /etc/xdg/autostart/, not $HOME/.config/autostart/. The rest of your answer stands. Still curious about the general algorithm for such things, though.

    – sigil
    Sep 29 at 12:07












  • etc xdg for all users......... .config for user..

    – PRATAP
    Sep 29 at 12:25












  • i still doubt why it went to /etc/xdg/ in your case.. may be manual entry? if possible purge xbindkeys and then install xbindkeys.. and see if it is still created in /etc/xdg

    – PRATAP
    Sep 29 at 12:29

















  • In my case it seems to be /etc/xdg/autostart/, not $HOME/.config/autostart/. The rest of your answer stands. Still curious about the general algorithm for such things, though.

    – sigil
    Sep 29 at 12:07












  • etc xdg for all users......... .config for user..

    – PRATAP
    Sep 29 at 12:25












  • i still doubt why it went to /etc/xdg/ in your case.. may be manual entry? if possible purge xbindkeys and then install xbindkeys.. and see if it is still created in /etc/xdg

    – PRATAP
    Sep 29 at 12:29
















In my case it seems to be /etc/xdg/autostart/, not $HOME/.config/autostart/. The rest of your answer stands. Still curious about the general algorithm for such things, though.

– sigil
Sep 29 at 12:07






In my case it seems to be /etc/xdg/autostart/, not $HOME/.config/autostart/. The rest of your answer stands. Still curious about the general algorithm for such things, though.

– sigil
Sep 29 at 12:07














etc xdg for all users......... .config for user..

– PRATAP
Sep 29 at 12:25






etc xdg for all users......... .config for user..

– PRATAP
Sep 29 at 12:25














i still doubt why it went to /etc/xdg/ in your case.. may be manual entry? if possible purge xbindkeys and then install xbindkeys.. and see if it is still created in /etc/xdg

– PRATAP
Sep 29 at 12:29





i still doubt why it went to /etc/xdg/ in your case.. may be manual entry? if possible purge xbindkeys and then install xbindkeys.. and see if it is still created in /etc/xdg

– PRATAP
Sep 29 at 12:29


















draft saved

draft discarded















































Thanks for contributing an answer to Ask Ubuntu!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177356%2fhow-to-find-out-what-autostarted-a-program%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown









Popular posts from this blog

Tamil (spriik) Luke uk diar | Nawigatjuun

Align equal signs while including text over equalitiesAMS align: left aligned text/math plus multicolumn alignmentMultiple alignmentsAligning equations in multiple placesNumbering and aligning an equation with multiple columnsHow to align one equation with another multline equationUsing \ in environments inside the begintabularxNumber equations and preserving alignment of equal signsHow can I align equations to the left and to the right?Double equation alignment problem within align enviromentAligned within align: Why are they right-aligned?

Where does the image of a data connector as a sharp metal spike originate from?Where does the concept of infected people turning into zombies only after death originate from?Where does the motif of a reanimated human head originate?Where did the notion that Dragons could speak originate?Where does the archetypal image of the 'Grey' alien come from?Where did the suffix '-Man' originate?Where does the notion of being injured or killed by an illusion originate?Where did the term “sophont” originate?Where does the trope of magic spells being driven by advanced technology originate from?Where did the term “the living impaired” originate?