How can I change the icon of an application in the Unity launcher?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP








up vote
67
down vote

favorite
26












I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.



I can change the theme but that's not what I want.



I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.










share|improve this question























  • Have a look at this previous question askubuntu.com/questions/6009/where-are-icons-stored
    – Mark Rooney
    Nov 19 '11 at 3:53














up vote
67
down vote

favorite
26












I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.



I can change the theme but that's not what I want.



I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.










share|improve this question























  • Have a look at this previous question askubuntu.com/questions/6009/where-are-icons-stored
    – Mark Rooney
    Nov 19 '11 at 3:53












up vote
67
down vote

favorite
26









up vote
67
down vote

favorite
26






26





I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.



I can change the theme but that's not what I want.



I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.










share|improve this question















I'm trying to change the icon of a specific application (Pidgin) in my Ubuntu 11.10 Unity launcher. I have tried searching in the options and in the Compiz settings but could locate no option for changing individual icons.



I can change the theme but that's not what I want.



I am willing to edit configuration files to get this change. It doesn't have to be a UI solution.







unity icons






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 19 '12 at 12:02









htorque

45.9k31169211




45.9k31169211










asked Nov 19 '11 at 3:08









recluze

5971512




5971512











  • Have a look at this previous question askubuntu.com/questions/6009/where-are-icons-stored
    – Mark Rooney
    Nov 19 '11 at 3:53
















  • Have a look at this previous question askubuntu.com/questions/6009/where-are-icons-stored
    – Mark Rooney
    Nov 19 '11 at 3:53















Have a look at this previous question askubuntu.com/questions/6009/where-are-icons-stored
– Mark Rooney
Nov 19 '11 at 3:53




Have a look at this previous question askubuntu.com/questions/6009/where-are-icons-stored
– Mark Rooney
Nov 19 '11 at 3:53










7 Answers
7






active

oldest

votes

















up vote
66
down vote



accepted










For Ubuntu 11.10




The first thing you would need to do is take a .png icon file that you would like to use and copy it to the respective ~/.local/share/icons/hicolor/ directory. This will contain the following directories (which are the dimensions of the icons) : 16x16/apps/ 32x32/apps/ 48x48/apps/



I downloaded a free 16x16 free icon sampler and picked a 16x16 icon called Alien.png



I took the Alien.png file and copied it to ~/.local/share/icons/hicolor/16x16/apps, When you copy yours, you can do that through either the GUI or terminal.



From there you would need do the following in a terminal (you may need sudo to copy this over):



cp /usr/share/applications/pidgin.desktop ~/.local/share/applications/


Next edit the pidgin.desktop file:



vi ~/.local/share/applications/pidgin.desktop


Look for the line that says:



Icon=pidgin


This will need to change to the new icon name without the .png prefix...



Icon=Alien


Save your changes... Then logout and log back in.



Please let me know if this helps or if you need more assistance.






share|improve this answer


















  • 1




    ~/ is the same thing as entering /home/<your-username>, just for clarification
    – itnet7
    Nov 19 '11 at 3:58






  • 1




    Awesome. Great instructions. Just one thing. I had to sudo to copy the file from /usr/share to my local directory.
    – recluze
    Nov 19 '11 at 4:01






  • 1




    Also consider to add a 128x128 icon (in the 128x128/apps/ folder) if you want a nice resolution during alt-tab (which uses slighly larger icons than the dock). Otherwise, excellent tip, thanks a lot !
    – Anto
    Jan 19 '12 at 13:38






  • 3




    I love Ubuntu, but I'm sorry to say that some simple things like this one really suck... This is definitely not user friendly... Thanks for the detailed description anyway.
    – takeshin
    Feb 25 '13 at 10:01










  • Great, very helpfull - especially the part about logging out and then back in again :)
    – Isaac
    Sep 23 '15 at 7:23

















up vote
18
down vote













The way that I did it was go to /usr/share/applications/<whatever app your looking for> then right click to properties click on the icon on the left and select the image that you want to be the icon.



You will have to sudo nautilus to edit the icon. Then just exit and search the program in Unity and it will show up with the selected icon.






share|improve this answer


















  • 3




    I think you should rather do 'gksudo nautilus' instead of 'sudo nautilus' (but as I'm not an expert I could be mistaking)
    – user138784
    Mar 27 '13 at 10:30










  • You could also use sudo -H nautilus
    – kiri
    Oct 16 '13 at 11:42

















up vote
7
down vote













For Ubuntu 12.04




In addition to the excellent answer given by itnet7, I would like to add that in Ubuntu 12.04 I had to also add ~/.local/usr/applications/icons/hicolor/64x64/apps in order for Unity to see the icon.



To resize your custom icon, you can use the excellent imagemagick package.



sudo apt-get install imagemagick


Then run the command mogrify -resize 64x64! myImage.png in order to get your custom icons nicely scaled down to the desired resolutions.



If you run the command below after creating the desktop icon and locked the application to your launcher, it will update unity without a need for a reboot.



unity --replace & 


as described here:
application locked to launcher without icon






share|improve this answer





























    up vote
    6
    down vote













    1. Install Main Menu (AKA Alacarte) alacarte Install alacarte

    2. Open Main Menu

    3. Click on a program and select Properties in the right menu.

    4. Click on the icon

    5. Browse for your new icon and click Open

    6. Close your programs properties

    7. Close Main Menu

    No logging out or reboot required ;)






    share|improve this answer






















    • Just to update; This method is working as for version 15.04, I just tried.
      – Tico
      May 1 '15 at 2:09

















    up vote
    5
    down vote













    For Ubuntu 14.04



    In order to link an icon with a certain application that could be placed on the launcher, do the following on the command line:



    Take e.g. an application called alpha_app with its icon alpha_app.png:




    1. execute:



      sudo cp alpha_app.png /usr/share/pixmaps/


      The above command copies your icon with file name alpha_app.png to the appropriate folder.




    2. Execute:



      sudo gedit /usr/local/share/applications/alpha_app.desktop



    3. In gedit, change the name of the icon as follows:



      Icon=alpha_app.png


      If the file alpha_app.desktop doesn't exist in /usr/local/share/applications/, execute locate alpha_app.desktop and copy it there. In the unlikely event that this is unsuccessful, it means that there is no alpha_app.desktop file anywhere in the disk and that you would need to create it yourself.



    4. Go to the dash and type the name of your application, in our example alpha_app.


    5. Pick the icon from Dash and move in onto Launcher.


    Τέλος! The end!






    share|improve this answer






















    • Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your answers in the future... ;-)
      – Fabby
      Feb 23 '16 at 22:25










    • This works just perfect also in 16.04. You may need to restart/logout-login first so that Unity reads the new .desktop file.
      – MakisH
      Dec 6 '16 at 13:09


















    up vote
    0
    down vote













    For Ubuntu 12.10




    The directory that contains the following directories (which are the dimensions of the icons) has been changed to:




    ~/.local/share/icons/unity-webapps/apps




    and if you do ls :



    128 16 192 22 24 32 48 64 96





    share|improve this answer





























      up vote
      -1
      down vote













      In 13.04 I installed Nemo to get rid of nautilus-for-armless-toy.



      I wanted the icon folder-house in the launcher.



      I opened ~/.local/share/applications/nemo.desktop with gedit to have a look, and found a line



      icon=folder 


      (no path, no extension ???)



      I tried searching in /usr/share/ for the usual default icon of nautilus which appeared to be called folder_home.png or .svg, I couldn't decide which. There were a bunch a files with the same name in various folders, so in the end I just changed the line to



      icon=folder_home


      and after logging out and back in the icon was changed.






      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',
        convertImagesToLinks: true,
        noModals: false,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        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%2f80627%2fhow-can-i-change-the-icon-of-an-application-in-the-unity-launcher%23new-answer', 'question_page');

        );

        Post as a guest






























        7 Answers
        7






        active

        oldest

        votes








        7 Answers
        7






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes








        up vote
        66
        down vote



        accepted










        For Ubuntu 11.10




        The first thing you would need to do is take a .png icon file that you would like to use and copy it to the respective ~/.local/share/icons/hicolor/ directory. This will contain the following directories (which are the dimensions of the icons) : 16x16/apps/ 32x32/apps/ 48x48/apps/



        I downloaded a free 16x16 free icon sampler and picked a 16x16 icon called Alien.png



        I took the Alien.png file and copied it to ~/.local/share/icons/hicolor/16x16/apps, When you copy yours, you can do that through either the GUI or terminal.



        From there you would need do the following in a terminal (you may need sudo to copy this over):



        cp /usr/share/applications/pidgin.desktop ~/.local/share/applications/


        Next edit the pidgin.desktop file:



        vi ~/.local/share/applications/pidgin.desktop


        Look for the line that says:



        Icon=pidgin


        This will need to change to the new icon name without the .png prefix...



        Icon=Alien


        Save your changes... Then logout and log back in.



        Please let me know if this helps or if you need more assistance.






        share|improve this answer


















        • 1




          ~/ is the same thing as entering /home/<your-username>, just for clarification
          – itnet7
          Nov 19 '11 at 3:58






        • 1




          Awesome. Great instructions. Just one thing. I had to sudo to copy the file from /usr/share to my local directory.
          – recluze
          Nov 19 '11 at 4:01






        • 1




          Also consider to add a 128x128 icon (in the 128x128/apps/ folder) if you want a nice resolution during alt-tab (which uses slighly larger icons than the dock). Otherwise, excellent tip, thanks a lot !
          – Anto
          Jan 19 '12 at 13:38






        • 3




          I love Ubuntu, but I'm sorry to say that some simple things like this one really suck... This is definitely not user friendly... Thanks for the detailed description anyway.
          – takeshin
          Feb 25 '13 at 10:01










        • Great, very helpfull - especially the part about logging out and then back in again :)
          – Isaac
          Sep 23 '15 at 7:23














        up vote
        66
        down vote



        accepted










        For Ubuntu 11.10




        The first thing you would need to do is take a .png icon file that you would like to use and copy it to the respective ~/.local/share/icons/hicolor/ directory. This will contain the following directories (which are the dimensions of the icons) : 16x16/apps/ 32x32/apps/ 48x48/apps/



        I downloaded a free 16x16 free icon sampler and picked a 16x16 icon called Alien.png



        I took the Alien.png file and copied it to ~/.local/share/icons/hicolor/16x16/apps, When you copy yours, you can do that through either the GUI or terminal.



        From there you would need do the following in a terminal (you may need sudo to copy this over):



        cp /usr/share/applications/pidgin.desktop ~/.local/share/applications/


        Next edit the pidgin.desktop file:



        vi ~/.local/share/applications/pidgin.desktop


        Look for the line that says:



        Icon=pidgin


        This will need to change to the new icon name without the .png prefix...



        Icon=Alien


        Save your changes... Then logout and log back in.



        Please let me know if this helps or if you need more assistance.






        share|improve this answer


















        • 1




          ~/ is the same thing as entering /home/<your-username>, just for clarification
          – itnet7
          Nov 19 '11 at 3:58






        • 1




          Awesome. Great instructions. Just one thing. I had to sudo to copy the file from /usr/share to my local directory.
          – recluze
          Nov 19 '11 at 4:01






        • 1




          Also consider to add a 128x128 icon (in the 128x128/apps/ folder) if you want a nice resolution during alt-tab (which uses slighly larger icons than the dock). Otherwise, excellent tip, thanks a lot !
          – Anto
          Jan 19 '12 at 13:38






        • 3




          I love Ubuntu, but I'm sorry to say that some simple things like this one really suck... This is definitely not user friendly... Thanks for the detailed description anyway.
          – takeshin
          Feb 25 '13 at 10:01










        • Great, very helpfull - especially the part about logging out and then back in again :)
          – Isaac
          Sep 23 '15 at 7:23












        up vote
        66
        down vote



        accepted







        up vote
        66
        down vote



        accepted






        For Ubuntu 11.10




        The first thing you would need to do is take a .png icon file that you would like to use and copy it to the respective ~/.local/share/icons/hicolor/ directory. This will contain the following directories (which are the dimensions of the icons) : 16x16/apps/ 32x32/apps/ 48x48/apps/



        I downloaded a free 16x16 free icon sampler and picked a 16x16 icon called Alien.png



        I took the Alien.png file and copied it to ~/.local/share/icons/hicolor/16x16/apps, When you copy yours, you can do that through either the GUI or terminal.



        From there you would need do the following in a terminal (you may need sudo to copy this over):



        cp /usr/share/applications/pidgin.desktop ~/.local/share/applications/


        Next edit the pidgin.desktop file:



        vi ~/.local/share/applications/pidgin.desktop


        Look for the line that says:



        Icon=pidgin


        This will need to change to the new icon name without the .png prefix...



        Icon=Alien


        Save your changes... Then logout and log back in.



        Please let me know if this helps or if you need more assistance.






        share|improve this answer














        For Ubuntu 11.10




        The first thing you would need to do is take a .png icon file that you would like to use and copy it to the respective ~/.local/share/icons/hicolor/ directory. This will contain the following directories (which are the dimensions of the icons) : 16x16/apps/ 32x32/apps/ 48x48/apps/



        I downloaded a free 16x16 free icon sampler and picked a 16x16 icon called Alien.png



        I took the Alien.png file and copied it to ~/.local/share/icons/hicolor/16x16/apps, When you copy yours, you can do that through either the GUI or terminal.



        From there you would need do the following in a terminal (you may need sudo to copy this over):



        cp /usr/share/applications/pidgin.desktop ~/.local/share/applications/


        Next edit the pidgin.desktop file:



        vi ~/.local/share/applications/pidgin.desktop


        Look for the line that says:



        Icon=pidgin


        This will need to change to the new icon name without the .png prefix...



        Icon=Alien


        Save your changes... Then logout and log back in.



        Please let me know if this helps or if you need more assistance.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 17 '13 at 22:24









        Suhaib

        3,25343045




        3,25343045










        answered Nov 19 '11 at 3:54









        itnet7

        3,19311420




        3,19311420







        • 1




          ~/ is the same thing as entering /home/<your-username>, just for clarification
          – itnet7
          Nov 19 '11 at 3:58






        • 1




          Awesome. Great instructions. Just one thing. I had to sudo to copy the file from /usr/share to my local directory.
          – recluze
          Nov 19 '11 at 4:01






        • 1




          Also consider to add a 128x128 icon (in the 128x128/apps/ folder) if you want a nice resolution during alt-tab (which uses slighly larger icons than the dock). Otherwise, excellent tip, thanks a lot !
          – Anto
          Jan 19 '12 at 13:38






        • 3




          I love Ubuntu, but I'm sorry to say that some simple things like this one really suck... This is definitely not user friendly... Thanks for the detailed description anyway.
          – takeshin
          Feb 25 '13 at 10:01










        • Great, very helpfull - especially the part about logging out and then back in again :)
          – Isaac
          Sep 23 '15 at 7:23












        • 1




          ~/ is the same thing as entering /home/<your-username>, just for clarification
          – itnet7
          Nov 19 '11 at 3:58






        • 1




          Awesome. Great instructions. Just one thing. I had to sudo to copy the file from /usr/share to my local directory.
          – recluze
          Nov 19 '11 at 4:01






        • 1




          Also consider to add a 128x128 icon (in the 128x128/apps/ folder) if you want a nice resolution during alt-tab (which uses slighly larger icons than the dock). Otherwise, excellent tip, thanks a lot !
          – Anto
          Jan 19 '12 at 13:38






        • 3




          I love Ubuntu, but I'm sorry to say that some simple things like this one really suck... This is definitely not user friendly... Thanks for the detailed description anyway.
          – takeshin
          Feb 25 '13 at 10:01










        • Great, very helpfull - especially the part about logging out and then back in again :)
          – Isaac
          Sep 23 '15 at 7:23







        1




        1




        ~/ is the same thing as entering /home/<your-username>, just for clarification
        – itnet7
        Nov 19 '11 at 3:58




        ~/ is the same thing as entering /home/<your-username>, just for clarification
        – itnet7
        Nov 19 '11 at 3:58




        1




        1




        Awesome. Great instructions. Just one thing. I had to sudo to copy the file from /usr/share to my local directory.
        – recluze
        Nov 19 '11 at 4:01




        Awesome. Great instructions. Just one thing. I had to sudo to copy the file from /usr/share to my local directory.
        – recluze
        Nov 19 '11 at 4:01




        1




        1




        Also consider to add a 128x128 icon (in the 128x128/apps/ folder) if you want a nice resolution during alt-tab (which uses slighly larger icons than the dock). Otherwise, excellent tip, thanks a lot !
        – Anto
        Jan 19 '12 at 13:38




        Also consider to add a 128x128 icon (in the 128x128/apps/ folder) if you want a nice resolution during alt-tab (which uses slighly larger icons than the dock). Otherwise, excellent tip, thanks a lot !
        – Anto
        Jan 19 '12 at 13:38




        3




        3




        I love Ubuntu, but I'm sorry to say that some simple things like this one really suck... This is definitely not user friendly... Thanks for the detailed description anyway.
        – takeshin
        Feb 25 '13 at 10:01




        I love Ubuntu, but I'm sorry to say that some simple things like this one really suck... This is definitely not user friendly... Thanks for the detailed description anyway.
        – takeshin
        Feb 25 '13 at 10:01












        Great, very helpfull - especially the part about logging out and then back in again :)
        – Isaac
        Sep 23 '15 at 7:23




        Great, very helpfull - especially the part about logging out and then back in again :)
        – Isaac
        Sep 23 '15 at 7:23












        up vote
        18
        down vote













        The way that I did it was go to /usr/share/applications/<whatever app your looking for> then right click to properties click on the icon on the left and select the image that you want to be the icon.



        You will have to sudo nautilus to edit the icon. Then just exit and search the program in Unity and it will show up with the selected icon.






        share|improve this answer


















        • 3




          I think you should rather do 'gksudo nautilus' instead of 'sudo nautilus' (but as I'm not an expert I could be mistaking)
          – user138784
          Mar 27 '13 at 10:30










        • You could also use sudo -H nautilus
          – kiri
          Oct 16 '13 at 11:42














        up vote
        18
        down vote













        The way that I did it was go to /usr/share/applications/<whatever app your looking for> then right click to properties click on the icon on the left and select the image that you want to be the icon.



        You will have to sudo nautilus to edit the icon. Then just exit and search the program in Unity and it will show up with the selected icon.






        share|improve this answer


















        • 3




          I think you should rather do 'gksudo nautilus' instead of 'sudo nautilus' (but as I'm not an expert I could be mistaking)
          – user138784
          Mar 27 '13 at 10:30










        • You could also use sudo -H nautilus
          – kiri
          Oct 16 '13 at 11:42












        up vote
        18
        down vote










        up vote
        18
        down vote









        The way that I did it was go to /usr/share/applications/<whatever app your looking for> then right click to properties click on the icon on the left and select the image that you want to be the icon.



        You will have to sudo nautilus to edit the icon. Then just exit and search the program in Unity and it will show up with the selected icon.






        share|improve this answer














        The way that I did it was go to /usr/share/applications/<whatever app your looking for> then right click to properties click on the icon on the left and select the image that you want to be the icon.



        You will have to sudo nautilus to edit the icon. Then just exit and search the program in Unity and it will show up with the selected icon.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Dec 2 '12 at 20:57









        Eric Carvalho

        40.1k17109143




        40.1k17109143










        answered Dec 2 '12 at 20:36









        Kyle

        18112




        18112







        • 3




          I think you should rather do 'gksudo nautilus' instead of 'sudo nautilus' (but as I'm not an expert I could be mistaking)
          – user138784
          Mar 27 '13 at 10:30










        • You could also use sudo -H nautilus
          – kiri
          Oct 16 '13 at 11:42












        • 3




          I think you should rather do 'gksudo nautilus' instead of 'sudo nautilus' (but as I'm not an expert I could be mistaking)
          – user138784
          Mar 27 '13 at 10:30










        • You could also use sudo -H nautilus
          – kiri
          Oct 16 '13 at 11:42







        3




        3




        I think you should rather do 'gksudo nautilus' instead of 'sudo nautilus' (but as I'm not an expert I could be mistaking)
        – user138784
        Mar 27 '13 at 10:30




        I think you should rather do 'gksudo nautilus' instead of 'sudo nautilus' (but as I'm not an expert I could be mistaking)
        – user138784
        Mar 27 '13 at 10:30












        You could also use sudo -H nautilus
        – kiri
        Oct 16 '13 at 11:42




        You could also use sudo -H nautilus
        – kiri
        Oct 16 '13 at 11:42










        up vote
        7
        down vote













        For Ubuntu 12.04




        In addition to the excellent answer given by itnet7, I would like to add that in Ubuntu 12.04 I had to also add ~/.local/usr/applications/icons/hicolor/64x64/apps in order for Unity to see the icon.



        To resize your custom icon, you can use the excellent imagemagick package.



        sudo apt-get install imagemagick


        Then run the command mogrify -resize 64x64! myImage.png in order to get your custom icons nicely scaled down to the desired resolutions.



        If you run the command below after creating the desktop icon and locked the application to your launcher, it will update unity without a need for a reboot.



        unity --replace & 


        as described here:
        application locked to launcher without icon






        share|improve this answer


























          up vote
          7
          down vote













          For Ubuntu 12.04




          In addition to the excellent answer given by itnet7, I would like to add that in Ubuntu 12.04 I had to also add ~/.local/usr/applications/icons/hicolor/64x64/apps in order for Unity to see the icon.



          To resize your custom icon, you can use the excellent imagemagick package.



          sudo apt-get install imagemagick


          Then run the command mogrify -resize 64x64! myImage.png in order to get your custom icons nicely scaled down to the desired resolutions.



          If you run the command below after creating the desktop icon and locked the application to your launcher, it will update unity without a need for a reboot.



          unity --replace & 


          as described here:
          application locked to launcher without icon






          share|improve this answer
























            up vote
            7
            down vote










            up vote
            7
            down vote









            For Ubuntu 12.04




            In addition to the excellent answer given by itnet7, I would like to add that in Ubuntu 12.04 I had to also add ~/.local/usr/applications/icons/hicolor/64x64/apps in order for Unity to see the icon.



            To resize your custom icon, you can use the excellent imagemagick package.



            sudo apt-get install imagemagick


            Then run the command mogrify -resize 64x64! myImage.png in order to get your custom icons nicely scaled down to the desired resolutions.



            If you run the command below after creating the desktop icon and locked the application to your launcher, it will update unity without a need for a reboot.



            unity --replace & 


            as described here:
            application locked to launcher without icon






            share|improve this answer














            For Ubuntu 12.04




            In addition to the excellent answer given by itnet7, I would like to add that in Ubuntu 12.04 I had to also add ~/.local/usr/applications/icons/hicolor/64x64/apps in order for Unity to see the icon.



            To resize your custom icon, you can use the excellent imagemagick package.



            sudo apt-get install imagemagick


            Then run the command mogrify -resize 64x64! myImage.png in order to get your custom icons nicely scaled down to the desired resolutions.



            If you run the command below after creating the desktop icon and locked the application to your launcher, it will update unity without a need for a reboot.



            unity --replace & 


            as described here:
            application locked to launcher without icon







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Apr 13 '17 at 12:24









            Community♦

            1




            1










            answered Dec 18 '12 at 18:59









            Nicholas J. Arnold

            7112




            7112




















                up vote
                6
                down vote













                1. Install Main Menu (AKA Alacarte) alacarte Install alacarte

                2. Open Main Menu

                3. Click on a program and select Properties in the right menu.

                4. Click on the icon

                5. Browse for your new icon and click Open

                6. Close your programs properties

                7. Close Main Menu

                No logging out or reboot required ;)






                share|improve this answer






















                • Just to update; This method is working as for version 15.04, I just tried.
                  – Tico
                  May 1 '15 at 2:09














                up vote
                6
                down vote













                1. Install Main Menu (AKA Alacarte) alacarte Install alacarte

                2. Open Main Menu

                3. Click on a program and select Properties in the right menu.

                4. Click on the icon

                5. Browse for your new icon and click Open

                6. Close your programs properties

                7. Close Main Menu

                No logging out or reboot required ;)






                share|improve this answer






















                • Just to update; This method is working as for version 15.04, I just tried.
                  – Tico
                  May 1 '15 at 2:09












                up vote
                6
                down vote










                up vote
                6
                down vote









                1. Install Main Menu (AKA Alacarte) alacarte Install alacarte

                2. Open Main Menu

                3. Click on a program and select Properties in the right menu.

                4. Click on the icon

                5. Browse for your new icon and click Open

                6. Close your programs properties

                7. Close Main Menu

                No logging out or reboot required ;)






                share|improve this answer














                1. Install Main Menu (AKA Alacarte) alacarte Install alacarte

                2. Open Main Menu

                3. Click on a program and select Properties in the right menu.

                4. Click on the icon

                5. Browse for your new icon and click Open

                6. Close your programs properties

                7. Close Main Menu

                No logging out or reboot required ;)







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 11 '17 at 19:03









                Community♦

                1




                1










                answered Jul 1 '13 at 0:01









                guttermonk

                381510




                381510











                • Just to update; This method is working as for version 15.04, I just tried.
                  – Tico
                  May 1 '15 at 2:09
















                • Just to update; This method is working as for version 15.04, I just tried.
                  – Tico
                  May 1 '15 at 2:09















                Just to update; This method is working as for version 15.04, I just tried.
                – Tico
                May 1 '15 at 2:09




                Just to update; This method is working as for version 15.04, I just tried.
                – Tico
                May 1 '15 at 2:09










                up vote
                5
                down vote













                For Ubuntu 14.04



                In order to link an icon with a certain application that could be placed on the launcher, do the following on the command line:



                Take e.g. an application called alpha_app with its icon alpha_app.png:




                1. execute:



                  sudo cp alpha_app.png /usr/share/pixmaps/


                  The above command copies your icon with file name alpha_app.png to the appropriate folder.




                2. Execute:



                  sudo gedit /usr/local/share/applications/alpha_app.desktop



                3. In gedit, change the name of the icon as follows:



                  Icon=alpha_app.png


                  If the file alpha_app.desktop doesn't exist in /usr/local/share/applications/, execute locate alpha_app.desktop and copy it there. In the unlikely event that this is unsuccessful, it means that there is no alpha_app.desktop file anywhere in the disk and that you would need to create it yourself.



                4. Go to the dash and type the name of your application, in our example alpha_app.


                5. Pick the icon from Dash and move in onto Launcher.


                Τέλος! The end!






                share|improve this answer






















                • Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your answers in the future... ;-)
                  – Fabby
                  Feb 23 '16 at 22:25










                • This works just perfect also in 16.04. You may need to restart/logout-login first so that Unity reads the new .desktop file.
                  – MakisH
                  Dec 6 '16 at 13:09















                up vote
                5
                down vote













                For Ubuntu 14.04



                In order to link an icon with a certain application that could be placed on the launcher, do the following on the command line:



                Take e.g. an application called alpha_app with its icon alpha_app.png:




                1. execute:



                  sudo cp alpha_app.png /usr/share/pixmaps/


                  The above command copies your icon with file name alpha_app.png to the appropriate folder.




                2. Execute:



                  sudo gedit /usr/local/share/applications/alpha_app.desktop



                3. In gedit, change the name of the icon as follows:



                  Icon=alpha_app.png


                  If the file alpha_app.desktop doesn't exist in /usr/local/share/applications/, execute locate alpha_app.desktop and copy it there. In the unlikely event that this is unsuccessful, it means that there is no alpha_app.desktop file anywhere in the disk and that you would need to create it yourself.



                4. Go to the dash and type the name of your application, in our example alpha_app.


                5. Pick the icon from Dash and move in onto Launcher.


                Τέλος! The end!






                share|improve this answer






















                • Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your answers in the future... ;-)
                  – Fabby
                  Feb 23 '16 at 22:25










                • This works just perfect also in 16.04. You may need to restart/logout-login first so that Unity reads the new .desktop file.
                  – MakisH
                  Dec 6 '16 at 13:09













                up vote
                5
                down vote










                up vote
                5
                down vote









                For Ubuntu 14.04



                In order to link an icon with a certain application that could be placed on the launcher, do the following on the command line:



                Take e.g. an application called alpha_app with its icon alpha_app.png:




                1. execute:



                  sudo cp alpha_app.png /usr/share/pixmaps/


                  The above command copies your icon with file name alpha_app.png to the appropriate folder.




                2. Execute:



                  sudo gedit /usr/local/share/applications/alpha_app.desktop



                3. In gedit, change the name of the icon as follows:



                  Icon=alpha_app.png


                  If the file alpha_app.desktop doesn't exist in /usr/local/share/applications/, execute locate alpha_app.desktop and copy it there. In the unlikely event that this is unsuccessful, it means that there is no alpha_app.desktop file anywhere in the disk and that you would need to create it yourself.



                4. Go to the dash and type the name of your application, in our example alpha_app.


                5. Pick the icon from Dash and move in onto Launcher.


                Τέλος! The end!






                share|improve this answer














                For Ubuntu 14.04



                In order to link an icon with a certain application that could be placed on the launcher, do the following on the command line:



                Take e.g. an application called alpha_app with its icon alpha_app.png:




                1. execute:



                  sudo cp alpha_app.png /usr/share/pixmaps/


                  The above command copies your icon with file name alpha_app.png to the appropriate folder.




                2. Execute:



                  sudo gedit /usr/local/share/applications/alpha_app.desktop



                3. In gedit, change the name of the icon as follows:



                  Icon=alpha_app.png


                  If the file alpha_app.desktop doesn't exist in /usr/local/share/applications/, execute locate alpha_app.desktop and copy it there. In the unlikely event that this is unsuccessful, it means that there is no alpha_app.desktop file anywhere in the disk and that you would need to create it yourself.



                4. Go to the dash and type the name of your application, in our example alpha_app.


                5. Pick the icon from Dash and move in onto Launcher.


                Τέλος! The end!







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 1 '16 at 11:34









                Theodoros P.

                434




                434










                answered Feb 23 '16 at 22:04









                Nikos

                5111




                5111











                • Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your answers in the future... ;-)
                  – Fabby
                  Feb 23 '16 at 22:25










                • This works just perfect also in 16.04. You may need to restart/logout-login first so that Unity reads the new .desktop file.
                  – MakisH
                  Dec 6 '16 at 13:09

















                • Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your answers in the future... ;-)
                  – Fabby
                  Feb 23 '16 at 22:25










                • This works just perfect also in 16.04. You may need to restart/logout-login first so that Unity reads the new .desktop file.
                  – MakisH
                  Dec 6 '16 at 13:09
















                Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your answers in the future... ;-)
                – Fabby
                Feb 23 '16 at 22:25




                Welcome to Ask Ubuntu! ;-) Could you please review my edits and also review the editing help to improve the readability of your answers in the future... ;-)
                – Fabby
                Feb 23 '16 at 22:25












                This works just perfect also in 16.04. You may need to restart/logout-login first so that Unity reads the new .desktop file.
                – MakisH
                Dec 6 '16 at 13:09





                This works just perfect also in 16.04. You may need to restart/logout-login first so that Unity reads the new .desktop file.
                – MakisH
                Dec 6 '16 at 13:09











                up vote
                0
                down vote













                For Ubuntu 12.10




                The directory that contains the following directories (which are the dimensions of the icons) has been changed to:




                ~/.local/share/icons/unity-webapps/apps




                and if you do ls :



                128 16 192 22 24 32 48 64 96





                share|improve this answer


























                  up vote
                  0
                  down vote













                  For Ubuntu 12.10




                  The directory that contains the following directories (which are the dimensions of the icons) has been changed to:




                  ~/.local/share/icons/unity-webapps/apps




                  and if you do ls :



                  128 16 192 22 24 32 48 64 96





                  share|improve this answer
























                    up vote
                    0
                    down vote










                    up vote
                    0
                    down vote









                    For Ubuntu 12.10




                    The directory that contains the following directories (which are the dimensions of the icons) has been changed to:




                    ~/.local/share/icons/unity-webapps/apps




                    and if you do ls :



                    128 16 192 22 24 32 48 64 96





                    share|improve this answer














                    For Ubuntu 12.10




                    The directory that contains the following directories (which are the dimensions of the icons) has been changed to:




                    ~/.local/share/icons/unity-webapps/apps




                    and if you do ls :



                    128 16 192 22 24 32 48 64 96






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Apr 17 '13 at 23:00









                    Seth♦

                    32.6k24109159




                    32.6k24109159










                    answered Apr 17 '13 at 22:18









                    Suhaib

                    3,25343045




                    3,25343045




















                        up vote
                        -1
                        down vote













                        In 13.04 I installed Nemo to get rid of nautilus-for-armless-toy.



                        I wanted the icon folder-house in the launcher.



                        I opened ~/.local/share/applications/nemo.desktop with gedit to have a look, and found a line



                        icon=folder 


                        (no path, no extension ???)



                        I tried searching in /usr/share/ for the usual default icon of nautilus which appeared to be called folder_home.png or .svg, I couldn't decide which. There were a bunch a files with the same name in various folders, so in the end I just changed the line to



                        icon=folder_home


                        and after logging out and back in the icon was changed.






                        share|improve this answer


























                          up vote
                          -1
                          down vote













                          In 13.04 I installed Nemo to get rid of nautilus-for-armless-toy.



                          I wanted the icon folder-house in the launcher.



                          I opened ~/.local/share/applications/nemo.desktop with gedit to have a look, and found a line



                          icon=folder 


                          (no path, no extension ???)



                          I tried searching in /usr/share/ for the usual default icon of nautilus which appeared to be called folder_home.png or .svg, I couldn't decide which. There were a bunch a files with the same name in various folders, so in the end I just changed the line to



                          icon=folder_home


                          and after logging out and back in the icon was changed.






                          share|improve this answer
























                            up vote
                            -1
                            down vote










                            up vote
                            -1
                            down vote









                            In 13.04 I installed Nemo to get rid of nautilus-for-armless-toy.



                            I wanted the icon folder-house in the launcher.



                            I opened ~/.local/share/applications/nemo.desktop with gedit to have a look, and found a line



                            icon=folder 


                            (no path, no extension ???)



                            I tried searching in /usr/share/ for the usual default icon of nautilus which appeared to be called folder_home.png or .svg, I couldn't decide which. There were a bunch a files with the same name in various folders, so in the end I just changed the line to



                            icon=folder_home


                            and after logging out and back in the icon was changed.






                            share|improve this answer














                            In 13.04 I installed Nemo to get rid of nautilus-for-armless-toy.



                            I wanted the icon folder-house in the launcher.



                            I opened ~/.local/share/applications/nemo.desktop with gedit to have a look, and found a line



                            icon=folder 


                            (no path, no extension ???)



                            I tried searching in /usr/share/ for the usual default icon of nautilus which appeared to be called folder_home.png or .svg, I couldn't decide which. There were a bunch a files with the same name in various folders, so in the end I just changed the line to



                            icon=folder_home


                            and after logging out and back in the icon was changed.







                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Oct 15 '17 at 15:27









                            Zanna

                            48.2k13120228




                            48.2k13120228










                            answered Dec 17 '13 at 10:03









                            useful

                            5964823




                            5964823



























                                 

                                draft saved


                                draft discarded















































                                 


                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function ()
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f80627%2fhow-can-i-change-the-icon-of-an-application-in-the-unity-launcher%23new-answer', 'question_page');

                                );

                                Post as a guest













































































                                Popular posts from this blog

                                pylint3 and pip3 broken

                                Missing snmpget and snmpwalk

                                How to enroll fingerprints to Ubuntu 17.10 with VFS491