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;








14















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.










share|improve this question






























    14















    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.










    share|improve this question


























      14












      14








      14


      3






      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.










      share|improve this question
















      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






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Sep 2 '13 at 7:14









      BuZZ-dEE

      9,355125270




      9,355125270










      asked Aug 5 '10 at 12:28









      rickyricky

      829815




      829815




















          5 Answers
          5






          active

          oldest

          votes


















          14














          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.






          share|improve this answer
































            3














            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!






            share|improve this answer

























            • System -> Preferences -> Sessions -> Startup Programs is not gnome specific.

              – ricky
              Aug 5 '10 at 17:08


















            1














            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.






            share|improve this answer






























              0














              System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.






              share|improve this answer

























              • 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


















              0














              The other way to edit the autostart file is with a line like:



              OnlyShowIn=GNOME;Unity;





              share|improve this answer























                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
                );



                );













                draft saved

                draft discarded


















                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









                14














                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.






                share|improve this answer





























                  14














                  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.






                  share|improve this answer



























                    14












                    14








                    14







                    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.






                    share|improve this answer















                    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.







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Sep 7 '12 at 12:06









                    Anwar

                    57.5k22149257




                    57.5k22149257










                    answered Aug 5 '10 at 13:28









                    RessuRessu

                    8,77013027




                    8,77013027























                        3














                        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!






                        share|improve this answer

























                        • System -> Preferences -> Sessions -> Startup Programs is not gnome specific.

                          – ricky
                          Aug 5 '10 at 17:08















                        3














                        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!






                        share|improve this answer

























                        • System -> Preferences -> Sessions -> Startup Programs is not gnome specific.

                          – ricky
                          Aug 5 '10 at 17:08













                        3












                        3








                        3







                        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!






                        share|improve this answer















                        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!







                        share|improve this answer














                        share|improve this answer



                        share|improve this answer








                        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

















                        • 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











                        1














                        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.






                        share|improve this answer



























                          1














                          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.






                          share|improve this answer

























                            1












                            1








                            1







                            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.






                            share|improve this answer













                            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.







                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Apr 28 '13 at 0:45









                            Thomas SissonThomas Sisson

                            48237




                            48237





















                                0














                                System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.






                                share|improve this answer

























                                • 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















                                0














                                System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.






                                share|improve this answer

























                                • 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













                                0












                                0








                                0







                                System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.






                                share|improve this answer















                                System > Preferences > Startup Applications This is the Gnome alternative to the KDE Startup Manager.







                                share|improve this answer














                                share|improve this answer



                                share|improve this answer








                                edited Aug 5 '10 at 13:07

























                                answered Aug 5 '10 at 12:55









                                Marco CeppiMarco 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

















                                • 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











                                0














                                The other way to edit the autostart file is with a line like:



                                OnlyShowIn=GNOME;Unity;





                                share|improve this answer



























                                  0














                                  The other way to edit the autostart file is with a line like:



                                  OnlyShowIn=GNOME;Unity;





                                  share|improve this answer

























                                    0












                                    0








                                    0







                                    The other way to edit the autostart file is with a line like:



                                    OnlyShowIn=GNOME;Unity;





                                    share|improve this answer













                                    The other way to edit the autostart file is with a line like:



                                    OnlyShowIn=GNOME;Unity;






                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered May 30 '17 at 7:43









                                    chrisonbuntuchrisonbuntu

                                    363




                                    363



























                                        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%2f1086%2fhow-to-make-program-autostart-only-in-gnome%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

                                        Distance measures on a map of a game The 2019 Stack Overflow Developer Survey Results Are Inmin distance in a graphShortest distance path on contour plotHow to plot a tilted map?Finding points outside of a diskDelaunay link distanceAnnulus from GeoDisks: drawing a ring on a mapNegative Correlation DistanceFind distance along a path (GPS coordinates)Finding position at given distance in a GeoPathMathematics behind distance estimation using camera

                                        How to get a smooth, uniform ParametricPlot of a 2D Region?How to plot a complicated Region?How to exclude a region from ParametricPlotHow discretize a region placing vertices on a specific non-uniform gridHow to transform a Plot or a ParametricPlot into a RegionHow can I get a smooth plot of a bounded region?Smooth ParametricPlot3D with RegionFunction?Smooth border of a region ParametricPlotSmooth region boundarySmooth region plot from list of pointsGet minimum y of a certain x in a region

                                        Genealogie vun de Merowenger Vum Merowech bis zum Chilperich I. | Navigatiounsmenü