How to make program autostart only in GNOME Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How can I launch an application at startup just in a determined session?Hide Plank on KDE startup, but keep on Gnome?how to make programs that autostart at login start hidden?How do I make an application start only in XFCE?How can I launch an application at startup just in a determined session?Gnome 3 application theme in kDEChrome autostart on ubuntuhow to make a program autostart at every login on 12.10?KDE start Thunderbird on specific Dekstop at startupAutostart downloadKDE does not remember autostart settingsHow can I make KDE programs use the GTK+ theme specified with GNOME Tweak Tool?
Stars Make Stars
How do I stop a creek from eroding my steep embankment?
What is this single-engine low-wing propeller plane?
How to deal with a team lead who never gives me credit?
Is 1 ppb equal to 1 μg/kg?
What happens to sewage if there is no river near by?
What LEGO pieces have "real-world" functionality?
Are variable time comparisons always a security risk in cryptography code?
What makes black pepper strong or mild?
I am not a queen, who am I?
Java 8 stream max() function argument type Comparator vs Comparable
macOS-like app switching in Plasma 5
How can I fade player when goes inside or outside of the area?
When to stop saving and start investing?
Is a manifold-with-boundary with given interior and non-empty boundary essentially unique?
What does '1 unit of lemon juice' mean in a grandma's drink recipe?
Why was the term "discrete" used in discrete logarithm?
Is there a way in Ruby to make just any one out of many keyword arguments required?
What would be the ideal power source for a cybernetic eye?
What are the pros and cons of Aerospike nosecones?
How can players work together to take actions that are otherwise impossible?
Should I use Javascript Classes or Apex Classes in Lightning Web Components?
How can whole tone melodies sound more interesting?
IndentationError when pasting code in Python 3 interpreter mode
How to make program autostart only in GNOME
Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)How can I launch an application at startup just in a determined session?Hide Plank on KDE startup, but keep on Gnome?how to make programs that autostart at login start hidden?How do I make an application start only in XFCE?How can I launch an application at startup just in a determined session?Gnome 3 application theme in kDEChrome autostart on ubuntuhow to make a program autostart at every login on 12.10?KDE start Thunderbird on specific Dekstop at startupAutostart downloadKDE does not remember autostart settingsHow can I make KDE programs use the GTK+ theme specified with GNOME Tweak Tool?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I use both GNOME and KDE SC. In GNOME, I use Docky but I do not use it with KDE. So, I would like Docky to start up only when I login into GNOME not KDE. In KDE, there is an option to make a program autostart only in KDE. But I cannot find any such option in GNOME.
How can I do this?
Thanks in advance.
gnome kde autostart
add a comment |
I use both GNOME and KDE SC. In GNOME, I use Docky but I do not use it with KDE. So, I would like Docky to start up only when I login into GNOME not KDE. In KDE, there is an option to make a program autostart only in KDE. But I cannot find any such option in GNOME.
How can I do this?
Thanks in advance.
gnome kde autostart
add a comment |
I use both GNOME and KDE SC. In GNOME, I use Docky but I do not use it with KDE. So, I would like Docky to start up only when I login into GNOME not KDE. In KDE, there is an option to make a program autostart only in KDE. But I cannot find any such option in GNOME.
How can I do this?
Thanks in advance.
gnome kde autostart
I use both GNOME and KDE SC. In GNOME, I use Docky but I do not use it with KDE. So, I would like Docky to start up only when I login into GNOME not KDE. In KDE, there is an option to make a program autostart only in KDE. But I cannot find any such option in GNOME.
How can I do this?
Thanks in advance.
gnome kde autostart
gnome kde autostart
edited Sep 2 '13 at 7:14
BuZZ-dEE
9,355125270
9,355125270
asked Aug 5 '10 at 12:28
rickyricky
829815
829815
add a comment |
add a comment |
5 Answers
5
active
oldest
votes
You can edit the startup object in ~/.config/autostart and add this to the end:
OnlyShowIn=GNOME
It's a poorly named option, but it will cause KDE not to start the application.
add a comment |
I don't have kde installed to verify this but I believe adding the application here:
System -> Preferences -> Sessions -> Startup Programs is gnome specific.
If that doesn't work you can always put the program in a wrapper script that checks the value of the environment variable $DESKTOP_SESSION. Something like this:
#!/bin/bash
if [ $DESKTOP_SESSION == "GNOME" ];then
myApplication
fi
Hope this answers your question!
System -> Preferences -> Sessions -> Startup Programs is not gnome specific.
– ricky
Aug 5 '10 at 17:08
add a comment |
If you cannot find the entry that starts a program, you might also find it in /etc/xdg/autostart instead. I know they finally fixed Nautilus automatically starting in KDE using the OnlyShownIn setting. Changing files in this directory is system wide, so you may want to copy the file of the offending application to ~/.config/autostart/
Instead of using OnlyShownIn, you can also us NotShownIn. This can allow you to not something for the one desktop, but show it for all others. For this example, you can load Docky in all desktop managers except KDE, by using the following:
NotShownIn=KDE;
If you don't want it to start on any desktop, you can change it to OnlyShownIn=;
Lines in .desktop files are supposed to end with a semicolon. The semicolon is also used to separate values for settings that take more than one value at the same time.
This trick would mean that you have to list every desktop shell you use to keep something from running at all. So using NotShownIn=Unity would be fine if you only have Unity installed, but it would still start if you later installed KDE or Gnome.
If the desktop file in your user autostart folder does not stop an application from starting, you will need to deal with the desktop file in the xdg directory. For this, I would make a backup copy of the file. Instead of copying it with a bak extension, or something standard that may get overwritten later do this for the imaginary application called badapp for this example.
sudo cp /etc/xdg/autostart/badapp.desktop /etc/xdg/autostart/badapp.desktop.stop
You may then edit the original desktop file. If something breaks and you end up starting in a text boot, you can then rename the file back to the original name.
sudo cp /etc/xdg/autostart/badapp.desktop.stop /etc/xdg/autostart/badapp.desktop
Also, the default user autostart folder for KDE is ~/.kde/Autostart/ because KDE does things the KDE way.
add a comment |
System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.
What Marco said, it is DM specific I think.
– invert
Aug 5 '10 at 12:57
Yes but it is not restricted to GNOME only. Applications in there also starts up in KDE.
– ricky
Aug 5 '10 at 17:09
add a comment |
The other way to edit the autostart file is with a line like:
OnlyShowIn=GNOME;Unity;
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/3.0/"u003ecc by-sa 3.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%2f1086%2fhow-to-make-program-autostart-only-in-gnome%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
5 Answers
5
active
oldest
votes
5 Answers
5
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can edit the startup object in ~/.config/autostart and add this to the end:
OnlyShowIn=GNOME
It's a poorly named option, but it will cause KDE not to start the application.
add a comment |
You can edit the startup object in ~/.config/autostart and add this to the end:
OnlyShowIn=GNOME
It's a poorly named option, but it will cause KDE not to start the application.
add a comment |
You can edit the startup object in ~/.config/autostart and add this to the end:
OnlyShowIn=GNOME
It's a poorly named option, but it will cause KDE not to start the application.
You can edit the startup object in ~/.config/autostart and add this to the end:
OnlyShowIn=GNOME
It's a poorly named option, but it will cause KDE not to start the application.
edited Sep 7 '12 at 12:06
Anwar
57.5k22149257
57.5k22149257
answered Aug 5 '10 at 13:28
RessuRessu
8,77013027
8,77013027
add a comment |
add a comment |
I don't have kde installed to verify this but I believe adding the application here:
System -> Preferences -> Sessions -> Startup Programs is gnome specific.
If that doesn't work you can always put the program in a wrapper script that checks the value of the environment variable $DESKTOP_SESSION. Something like this:
#!/bin/bash
if [ $DESKTOP_SESSION == "GNOME" ];then
myApplication
fi
Hope this answers your question!
System -> Preferences -> Sessions -> Startup Programs is not gnome specific.
– ricky
Aug 5 '10 at 17:08
add a comment |
I don't have kde installed to verify this but I believe adding the application here:
System -> Preferences -> Sessions -> Startup Programs is gnome specific.
If that doesn't work you can always put the program in a wrapper script that checks the value of the environment variable $DESKTOP_SESSION. Something like this:
#!/bin/bash
if [ $DESKTOP_SESSION == "GNOME" ];then
myApplication
fi
Hope this answers your question!
System -> Preferences -> Sessions -> Startup Programs is not gnome specific.
– ricky
Aug 5 '10 at 17:08
add a comment |
I don't have kde installed to verify this but I believe adding the application here:
System -> Preferences -> Sessions -> Startup Programs is gnome specific.
If that doesn't work you can always put the program in a wrapper script that checks the value of the environment variable $DESKTOP_SESSION. Something like this:
#!/bin/bash
if [ $DESKTOP_SESSION == "GNOME" ];then
myApplication
fi
Hope this answers your question!
I don't have kde installed to verify this but I believe adding the application here:
System -> Preferences -> Sessions -> Startup Programs is gnome specific.
If that doesn't work you can always put the program in a wrapper script that checks the value of the environment variable $DESKTOP_SESSION. Something like this:
#!/bin/bash
if [ $DESKTOP_SESSION == "GNOME" ];then
myApplication
fi
Hope this answers your question!
edited Sep 7 '12 at 12:07
Anwar
57.5k22149257
57.5k22149257
answered Aug 5 '10 at 12:59
jclu
System -> Preferences -> Sessions -> Startup Programs is not gnome specific.
– ricky
Aug 5 '10 at 17:08
add a comment |
System -> Preferences -> Sessions -> Startup Programs is not gnome specific.
– ricky
Aug 5 '10 at 17:08
System -> Preferences -> Sessions -> Startup Programs is not gnome specific.
– ricky
Aug 5 '10 at 17:08
System -> Preferences -> Sessions -> Startup Programs is not gnome specific.
– ricky
Aug 5 '10 at 17:08
add a comment |
If you cannot find the entry that starts a program, you might also find it in /etc/xdg/autostart instead. I know they finally fixed Nautilus automatically starting in KDE using the OnlyShownIn setting. Changing files in this directory is system wide, so you may want to copy the file of the offending application to ~/.config/autostart/
Instead of using OnlyShownIn, you can also us NotShownIn. This can allow you to not something for the one desktop, but show it for all others. For this example, you can load Docky in all desktop managers except KDE, by using the following:
NotShownIn=KDE;
If you don't want it to start on any desktop, you can change it to OnlyShownIn=;
Lines in .desktop files are supposed to end with a semicolon. The semicolon is also used to separate values for settings that take more than one value at the same time.
This trick would mean that you have to list every desktop shell you use to keep something from running at all. So using NotShownIn=Unity would be fine if you only have Unity installed, but it would still start if you later installed KDE or Gnome.
If the desktop file in your user autostart folder does not stop an application from starting, you will need to deal with the desktop file in the xdg directory. For this, I would make a backup copy of the file. Instead of copying it with a bak extension, or something standard that may get overwritten later do this for the imaginary application called badapp for this example.
sudo cp /etc/xdg/autostart/badapp.desktop /etc/xdg/autostart/badapp.desktop.stop
You may then edit the original desktop file. If something breaks and you end up starting in a text boot, you can then rename the file back to the original name.
sudo cp /etc/xdg/autostart/badapp.desktop.stop /etc/xdg/autostart/badapp.desktop
Also, the default user autostart folder for KDE is ~/.kde/Autostart/ because KDE does things the KDE way.
add a comment |
If you cannot find the entry that starts a program, you might also find it in /etc/xdg/autostart instead. I know they finally fixed Nautilus automatically starting in KDE using the OnlyShownIn setting. Changing files in this directory is system wide, so you may want to copy the file of the offending application to ~/.config/autostart/
Instead of using OnlyShownIn, you can also us NotShownIn. This can allow you to not something for the one desktop, but show it for all others. For this example, you can load Docky in all desktop managers except KDE, by using the following:
NotShownIn=KDE;
If you don't want it to start on any desktop, you can change it to OnlyShownIn=;
Lines in .desktop files are supposed to end with a semicolon. The semicolon is also used to separate values for settings that take more than one value at the same time.
This trick would mean that you have to list every desktop shell you use to keep something from running at all. So using NotShownIn=Unity would be fine if you only have Unity installed, but it would still start if you later installed KDE or Gnome.
If the desktop file in your user autostart folder does not stop an application from starting, you will need to deal with the desktop file in the xdg directory. For this, I would make a backup copy of the file. Instead of copying it with a bak extension, or something standard that may get overwritten later do this for the imaginary application called badapp for this example.
sudo cp /etc/xdg/autostart/badapp.desktop /etc/xdg/autostart/badapp.desktop.stop
You may then edit the original desktop file. If something breaks and you end up starting in a text boot, you can then rename the file back to the original name.
sudo cp /etc/xdg/autostart/badapp.desktop.stop /etc/xdg/autostart/badapp.desktop
Also, the default user autostart folder for KDE is ~/.kde/Autostart/ because KDE does things the KDE way.
add a comment |
If you cannot find the entry that starts a program, you might also find it in /etc/xdg/autostart instead. I know they finally fixed Nautilus automatically starting in KDE using the OnlyShownIn setting. Changing files in this directory is system wide, so you may want to copy the file of the offending application to ~/.config/autostart/
Instead of using OnlyShownIn, you can also us NotShownIn. This can allow you to not something for the one desktop, but show it for all others. For this example, you can load Docky in all desktop managers except KDE, by using the following:
NotShownIn=KDE;
If you don't want it to start on any desktop, you can change it to OnlyShownIn=;
Lines in .desktop files are supposed to end with a semicolon. The semicolon is also used to separate values for settings that take more than one value at the same time.
This trick would mean that you have to list every desktop shell you use to keep something from running at all. So using NotShownIn=Unity would be fine if you only have Unity installed, but it would still start if you later installed KDE or Gnome.
If the desktop file in your user autostart folder does not stop an application from starting, you will need to deal with the desktop file in the xdg directory. For this, I would make a backup copy of the file. Instead of copying it with a bak extension, or something standard that may get overwritten later do this for the imaginary application called badapp for this example.
sudo cp /etc/xdg/autostart/badapp.desktop /etc/xdg/autostart/badapp.desktop.stop
You may then edit the original desktop file. If something breaks and you end up starting in a text boot, you can then rename the file back to the original name.
sudo cp /etc/xdg/autostart/badapp.desktop.stop /etc/xdg/autostart/badapp.desktop
Also, the default user autostart folder for KDE is ~/.kde/Autostart/ because KDE does things the KDE way.
If you cannot find the entry that starts a program, you might also find it in /etc/xdg/autostart instead. I know they finally fixed Nautilus automatically starting in KDE using the OnlyShownIn setting. Changing files in this directory is system wide, so you may want to copy the file of the offending application to ~/.config/autostart/
Instead of using OnlyShownIn, you can also us NotShownIn. This can allow you to not something for the one desktop, but show it for all others. For this example, you can load Docky in all desktop managers except KDE, by using the following:
NotShownIn=KDE;
If you don't want it to start on any desktop, you can change it to OnlyShownIn=;
Lines in .desktop files are supposed to end with a semicolon. The semicolon is also used to separate values for settings that take more than one value at the same time.
This trick would mean that you have to list every desktop shell you use to keep something from running at all. So using NotShownIn=Unity would be fine if you only have Unity installed, but it would still start if you later installed KDE or Gnome.
If the desktop file in your user autostart folder does not stop an application from starting, you will need to deal with the desktop file in the xdg directory. For this, I would make a backup copy of the file. Instead of copying it with a bak extension, or something standard that may get overwritten later do this for the imaginary application called badapp for this example.
sudo cp /etc/xdg/autostart/badapp.desktop /etc/xdg/autostart/badapp.desktop.stop
You may then edit the original desktop file. If something breaks and you end up starting in a text boot, you can then rename the file back to the original name.
sudo cp /etc/xdg/autostart/badapp.desktop.stop /etc/xdg/autostart/badapp.desktop
Also, the default user autostart folder for KDE is ~/.kde/Autostart/ because KDE does things the KDE way.
answered Apr 28 '13 at 0:45
Thomas SissonThomas Sisson
48237
48237
add a comment |
add a comment |
System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.
What Marco said, it is DM specific I think.
– invert
Aug 5 '10 at 12:57
Yes but it is not restricted to GNOME only. Applications in there also starts up in KDE.
– ricky
Aug 5 '10 at 17:09
add a comment |
System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.
What Marco said, it is DM specific I think.
– invert
Aug 5 '10 at 12:57
Yes but it is not restricted to GNOME only. Applications in there also starts up in KDE.
– ricky
Aug 5 '10 at 17:09
add a comment |
System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.
System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.
edited Aug 5 '10 at 13:07
answered Aug 5 '10 at 12:55
Marco Ceppi♦Marco Ceppi
37.3k24155192
37.3k24155192
What Marco said, it is DM specific I think.
– invert
Aug 5 '10 at 12:57
Yes but it is not restricted to GNOME only. Applications in there also starts up in KDE.
– ricky
Aug 5 '10 at 17:09
add a comment |
What Marco said, it is DM specific I think.
– invert
Aug 5 '10 at 12:57
Yes but it is not restricted to GNOME only. Applications in there also starts up in KDE.
– ricky
Aug 5 '10 at 17:09
What Marco said, it is DM specific I think.
– invert
Aug 5 '10 at 12:57
What Marco said, it is DM specific I think.
– invert
Aug 5 '10 at 12:57
Yes but it is not restricted to GNOME only. Applications in there also starts up in KDE.
– ricky
Aug 5 '10 at 17:09
Yes but it is not restricted to GNOME only. Applications in there also starts up in KDE.
– ricky
Aug 5 '10 at 17:09
add a comment |
The other way to edit the autostart file is with a line like:
OnlyShowIn=GNOME;Unity;
add a comment |
The other way to edit the autostart file is with a line like:
OnlyShowIn=GNOME;Unity;
add a comment |
The other way to edit the autostart file is with a line like:
OnlyShowIn=GNOME;Unity;
The other way to edit the autostart file is with a line like:
OnlyShowIn=GNOME;Unity;
answered May 30 '17 at 7:43
chrisonbuntuchrisonbuntu
363
363
add a comment |
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%2f1086%2fhow-to-make-program-autostart-only-in-gnome%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