Cannot add custom launcher to Dock (*Add to Favorites*)












12















I have a custom .desktop file:



[Desktop Entry]
Type=Application
Terminal=false
Icon[en_US]=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png
Name[en_US]=IntelliJ
Exec=/home/alex/bin/idea-IC-173.4127.27/bin/idea.sh
Name=IntelliJ
Icon=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png


Output of ls -lha .local/share/applications/intellij.desktop:



-rwx--x--x 1 alex alex 248 Dez 30 10:54 .local/share/applications/intellij.desktop


I can find this launcher in Activities and I can double click on that file and IntelliJ will start. Nevertheless, I cannot add this launcher as a favorite to the dock. The option does not show up.



Answers posted to a previous question (Can't add Custom .desktop files to dock 17.10) don't work for me.










share|improve this question





























    12















    I have a custom .desktop file:



    [Desktop Entry]
    Type=Application
    Terminal=false
    Icon[en_US]=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png
    Name[en_US]=IntelliJ
    Exec=/home/alex/bin/idea-IC-173.4127.27/bin/idea.sh
    Name=IntelliJ
    Icon=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png


    Output of ls -lha .local/share/applications/intellij.desktop:



    -rwx--x--x 1 alex alex 248 Dez 30 10:54 .local/share/applications/intellij.desktop


    I can find this launcher in Activities and I can double click on that file and IntelliJ will start. Nevertheless, I cannot add this launcher as a favorite to the dock. The option does not show up.



    Answers posted to a previous question (Can't add Custom .desktop files to dock 17.10) don't work for me.










    share|improve this question



























      12












      12








      12


      4






      I have a custom .desktop file:



      [Desktop Entry]
      Type=Application
      Terminal=false
      Icon[en_US]=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png
      Name[en_US]=IntelliJ
      Exec=/home/alex/bin/idea-IC-173.4127.27/bin/idea.sh
      Name=IntelliJ
      Icon=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png


      Output of ls -lha .local/share/applications/intellij.desktop:



      -rwx--x--x 1 alex alex 248 Dez 30 10:54 .local/share/applications/intellij.desktop


      I can find this launcher in Activities and I can double click on that file and IntelliJ will start. Nevertheless, I cannot add this launcher as a favorite to the dock. The option does not show up.



      Answers posted to a previous question (Can't add Custom .desktop files to dock 17.10) don't work for me.










      share|improve this question
















      I have a custom .desktop file:



      [Desktop Entry]
      Type=Application
      Terminal=false
      Icon[en_US]=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png
      Name[en_US]=IntelliJ
      Exec=/home/alex/bin/idea-IC-173.4127.27/bin/idea.sh
      Name=IntelliJ
      Icon=/home/alex/bin/idea-IC-173.4127.27/bin/idea.png


      Output of ls -lha .local/share/applications/intellij.desktop:



      -rwx--x--x 1 alex alex 248 Dez 30 10:54 .local/share/applications/intellij.desktop


      I can find this launcher in Activities and I can double click on that file and IntelliJ will start. Nevertheless, I cannot add this launcher as a favorite to the dock. The option does not show up.



      Answers posted to a previous question (Can't add Custom .desktop files to dock 17.10) don't work for me.







      17.10 gnome-shell ubuntu-dock favorites






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 6 hours ago









      pomsky

      29.5k1190116




      29.5k1190116










      asked Dec 30 '17 at 15:04









      kerner1000kerner1000

      308214




      308214






















          2 Answers
          2






          active

          oldest

          votes


















          17














          Open Terminal and run



          gsettings get org.gnome.shell favorite-apps


          You should get the list of .desktop files associated to the apps pinned to Ubuntu dock in order, something like the following:



          ['appname-1.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']


          Suppose you want to pin the app associated to the intellij.desktop file as the second item in the dock. In that case, run



          gsettings set org.gnome.shell favorite-apps "['appname-1.desktop', 'intellij.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']"





          share|improve this answer
























          • This works! But when I start the app, another app icon appears. imgur.com/a/8GZ7j

            – kerner1000
            Jan 4 '18 at 18:06








          • 3





            @kerner1000 Try this: askubuntu.com/a/975230/480481 from step 4 onwards

            – pomsky
            Jan 4 '18 at 18:15








          • 1





            Works! Thanks a lot! I got acutally two strings back from xprop, I used the second one (jetbrains-idea-ce).

            – kerner1000
            Jan 4 '18 at 18:43













          • It may be more user-friendly to put it this way: wherever you put a .desktop file, make it executable and trustable when clicking to open it, then right-click on the icon in the dock and add to the favourites.

            – funicorn
            Jan 6 '18 at 3:39











          • @funicorn As per OP, the others methods (e.g. Add to favourites) mentioned in older questions are not working for them. That's why they asked a new question.

            – pomsky
            Jan 6 '18 at 7:04



















          5














          The answer from @pomsky is correct, but there is an easier way: use



          dconf-editor  


          (install it with sudo apt-get install dconf-editor if not installed) and navigate to



          org/gnome/shell/favorite-apps.



          There it is possible to edit and rearrange the Launcher.






          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%2f990833%2fcannot-add-custom-launcher-to-dock-add-to-favorites%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            17














            Open Terminal and run



            gsettings get org.gnome.shell favorite-apps


            You should get the list of .desktop files associated to the apps pinned to Ubuntu dock in order, something like the following:



            ['appname-1.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']


            Suppose you want to pin the app associated to the intellij.desktop file as the second item in the dock. In that case, run



            gsettings set org.gnome.shell favorite-apps "['appname-1.desktop', 'intellij.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']"





            share|improve this answer
























            • This works! But when I start the app, another app icon appears. imgur.com/a/8GZ7j

              – kerner1000
              Jan 4 '18 at 18:06








            • 3





              @kerner1000 Try this: askubuntu.com/a/975230/480481 from step 4 onwards

              – pomsky
              Jan 4 '18 at 18:15








            • 1





              Works! Thanks a lot! I got acutally two strings back from xprop, I used the second one (jetbrains-idea-ce).

              – kerner1000
              Jan 4 '18 at 18:43













            • It may be more user-friendly to put it this way: wherever you put a .desktop file, make it executable and trustable when clicking to open it, then right-click on the icon in the dock and add to the favourites.

              – funicorn
              Jan 6 '18 at 3:39











            • @funicorn As per OP, the others methods (e.g. Add to favourites) mentioned in older questions are not working for them. That's why they asked a new question.

              – pomsky
              Jan 6 '18 at 7:04
















            17














            Open Terminal and run



            gsettings get org.gnome.shell favorite-apps


            You should get the list of .desktop files associated to the apps pinned to Ubuntu dock in order, something like the following:



            ['appname-1.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']


            Suppose you want to pin the app associated to the intellij.desktop file as the second item in the dock. In that case, run



            gsettings set org.gnome.shell favorite-apps "['appname-1.desktop', 'intellij.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']"





            share|improve this answer
























            • This works! But when I start the app, another app icon appears. imgur.com/a/8GZ7j

              – kerner1000
              Jan 4 '18 at 18:06








            • 3





              @kerner1000 Try this: askubuntu.com/a/975230/480481 from step 4 onwards

              – pomsky
              Jan 4 '18 at 18:15








            • 1





              Works! Thanks a lot! I got acutally two strings back from xprop, I used the second one (jetbrains-idea-ce).

              – kerner1000
              Jan 4 '18 at 18:43













            • It may be more user-friendly to put it this way: wherever you put a .desktop file, make it executable and trustable when clicking to open it, then right-click on the icon in the dock and add to the favourites.

              – funicorn
              Jan 6 '18 at 3:39











            • @funicorn As per OP, the others methods (e.g. Add to favourites) mentioned in older questions are not working for them. That's why they asked a new question.

              – pomsky
              Jan 6 '18 at 7:04














            17












            17








            17







            Open Terminal and run



            gsettings get org.gnome.shell favorite-apps


            You should get the list of .desktop files associated to the apps pinned to Ubuntu dock in order, something like the following:



            ['appname-1.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']


            Suppose you want to pin the app associated to the intellij.desktop file as the second item in the dock. In that case, run



            gsettings set org.gnome.shell favorite-apps "['appname-1.desktop', 'intellij.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']"





            share|improve this answer













            Open Terminal and run



            gsettings get org.gnome.shell favorite-apps


            You should get the list of .desktop files associated to the apps pinned to Ubuntu dock in order, something like the following:



            ['appname-1.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']


            Suppose you want to pin the app associated to the intellij.desktop file as the second item in the dock. In that case, run



            gsettings set org.gnome.shell favorite-apps "['appname-1.desktop', 'intellij.desktop', 'appname-2.desktop', 'appname-3.desktop', 'appname-4.desktop', 'appname-5.desktop']"






            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered Jan 4 '18 at 17:54









            pomskypomsky

            29.5k1190116




            29.5k1190116













            • This works! But when I start the app, another app icon appears. imgur.com/a/8GZ7j

              – kerner1000
              Jan 4 '18 at 18:06








            • 3





              @kerner1000 Try this: askubuntu.com/a/975230/480481 from step 4 onwards

              – pomsky
              Jan 4 '18 at 18:15








            • 1





              Works! Thanks a lot! I got acutally two strings back from xprop, I used the second one (jetbrains-idea-ce).

              – kerner1000
              Jan 4 '18 at 18:43













            • It may be more user-friendly to put it this way: wherever you put a .desktop file, make it executable and trustable when clicking to open it, then right-click on the icon in the dock and add to the favourites.

              – funicorn
              Jan 6 '18 at 3:39











            • @funicorn As per OP, the others methods (e.g. Add to favourites) mentioned in older questions are not working for them. That's why they asked a new question.

              – pomsky
              Jan 6 '18 at 7:04



















            • This works! But when I start the app, another app icon appears. imgur.com/a/8GZ7j

              – kerner1000
              Jan 4 '18 at 18:06








            • 3





              @kerner1000 Try this: askubuntu.com/a/975230/480481 from step 4 onwards

              – pomsky
              Jan 4 '18 at 18:15








            • 1





              Works! Thanks a lot! I got acutally two strings back from xprop, I used the second one (jetbrains-idea-ce).

              – kerner1000
              Jan 4 '18 at 18:43













            • It may be more user-friendly to put it this way: wherever you put a .desktop file, make it executable and trustable when clicking to open it, then right-click on the icon in the dock and add to the favourites.

              – funicorn
              Jan 6 '18 at 3:39











            • @funicorn As per OP, the others methods (e.g. Add to favourites) mentioned in older questions are not working for them. That's why they asked a new question.

              – pomsky
              Jan 6 '18 at 7:04

















            This works! But when I start the app, another app icon appears. imgur.com/a/8GZ7j

            – kerner1000
            Jan 4 '18 at 18:06







            This works! But when I start the app, another app icon appears. imgur.com/a/8GZ7j

            – kerner1000
            Jan 4 '18 at 18:06






            3




            3





            @kerner1000 Try this: askubuntu.com/a/975230/480481 from step 4 onwards

            – pomsky
            Jan 4 '18 at 18:15







            @kerner1000 Try this: askubuntu.com/a/975230/480481 from step 4 onwards

            – pomsky
            Jan 4 '18 at 18:15






            1




            1





            Works! Thanks a lot! I got acutally two strings back from xprop, I used the second one (jetbrains-idea-ce).

            – kerner1000
            Jan 4 '18 at 18:43







            Works! Thanks a lot! I got acutally two strings back from xprop, I used the second one (jetbrains-idea-ce).

            – kerner1000
            Jan 4 '18 at 18:43















            It may be more user-friendly to put it this way: wherever you put a .desktop file, make it executable and trustable when clicking to open it, then right-click on the icon in the dock and add to the favourites.

            – funicorn
            Jan 6 '18 at 3:39





            It may be more user-friendly to put it this way: wherever you put a .desktop file, make it executable and trustable when clicking to open it, then right-click on the icon in the dock and add to the favourites.

            – funicorn
            Jan 6 '18 at 3:39













            @funicorn As per OP, the others methods (e.g. Add to favourites) mentioned in older questions are not working for them. That's why they asked a new question.

            – pomsky
            Jan 6 '18 at 7:04





            @funicorn As per OP, the others methods (e.g. Add to favourites) mentioned in older questions are not working for them. That's why they asked a new question.

            – pomsky
            Jan 6 '18 at 7:04













            5














            The answer from @pomsky is correct, but there is an easier way: use



            dconf-editor  


            (install it with sudo apt-get install dconf-editor if not installed) and navigate to



            org/gnome/shell/favorite-apps.



            There it is possible to edit and rearrange the Launcher.






            share|improve this answer






























              5














              The answer from @pomsky is correct, but there is an easier way: use



              dconf-editor  


              (install it with sudo apt-get install dconf-editor if not installed) and navigate to



              org/gnome/shell/favorite-apps.



              There it is possible to edit and rearrange the Launcher.






              share|improve this answer




























                5












                5








                5







                The answer from @pomsky is correct, but there is an easier way: use



                dconf-editor  


                (install it with sudo apt-get install dconf-editor if not installed) and navigate to



                org/gnome/shell/favorite-apps.



                There it is possible to edit and rearrange the Launcher.






                share|improve this answer















                The answer from @pomsky is correct, but there is an easier way: use



                dconf-editor  


                (install it with sudo apt-get install dconf-editor if not installed) and navigate to



                org/gnome/shell/favorite-apps.



                There it is possible to edit and rearrange the Launcher.







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Sep 2 '18 at 15:28









                abu_bua

                3,27981126




                3,27981126










                answered Aug 31 '18 at 16:23









                user866381user866381

                5111




                5111






























                    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%2f990833%2fcannot-add-custom-launcher-to-dock-add-to-favorites%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

                    日野市

                    GameSpot

                    Tu-95轟炸機