1

trying to create a launcher with a .png image file and main menu keeps on removing it. is .png not supported or do I need to edit the image first?

8
  • .png icons can be used, could you post your file (launcher)? Sep 10, 2014 at 12:56
  • I have no idea how I would post my launcher. it's just a main menu launcher for minecraft Sep 10, 2014 at 23:27
  • Open the file with gedit (or drag it onto a gedit window), copy its content and paste it into your question. (click on "edit below your question). I can look for errors. Sep 11, 2014 at 5:43
  • when I right click it in the unity launcher and in main menu it doesb't have an openwith option. in main menu it only has properties and in the unity launcher the onyl option is to remove it from the launcher/ Sep 11, 2014 at 5:54
  • I mean on the .desktop file itself where is it stored? There is probably a small error in the file. Sep 11, 2014 at 6:08

1 Answer 1

1

What goes wrong

I tried to create a launcher with Alacarte, with the same result. It turns out that when Alacarte creates a new launcher, it does not handle the icon's file extension correctly on custom icons. In the Icon= line of the launcher; it simply leaves out the extension.

How you can fix it

In your home directory, there is a folder ~/.local/share/applications (.local is invisible by default, press Ctrl + H to make it visible). That is the location where your launcher (file) is created.

  • Open the folder
  • Look for a file named alacarte-made.desktop (if you created more than one, they will be numbered)
  • Open gedit, drag the file alacarte-made.desktop on to the open gedit window to open it.
  • Look for the line, starting with Icon=, replace the section after Icon= with the path to your icon, including the .png extension.

Note

You might have to log out and back in to see the result.

10
  • I did and it already had the right path. Sep 11, 2014 at 7:18
  • @SyiKargath Then could you paste the content of the file in your post? Alacarte consequently removes the extenion. Sep 11, 2014 at 7:21
  • Icon=/home/randy/Pictures/minecraft_icon_by_dharmainitiative2010-d33ca5p Sep 11, 2014 at 7:23
  • I don't see a .png extension, like I mentioned in my answer. I assume it is in the icon's name. Sep 11, 2014 at 7:25
  • so just add the .png and it should work? Sep 11, 2014 at 7:27

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .