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;
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
add a comment
|
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
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
add a comment
|
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
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
autostart
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
add a comment
|
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
add a comment
|
1 Answer
1
active
oldest
votes
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
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
to Hidden=false
you can see it in GUI startupapplications list like below
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
add a comment
|
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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
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
to Hidden=false
you can see it in GUI startupapplications list like below
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
add a comment
|
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
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
to Hidden=false
you can see it in GUI startupapplications list like below
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
add a comment
|
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
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
to Hidden=false
you can see it in GUI startupapplications list like below
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
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
to Hidden=false
you can see it in GUI startupapplications list like below
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
add a comment
|
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
add a comment
|
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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