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?
Asked
Active
Viewed 979 times
1
-
.png icons can be used, could you post your file (launcher)? – Jacob Vlijm Sep 10 '14 at 12:56
-
I have no idea how I would post my launcher. it's just a main menu launcher for minecraft – Syi Kargath Sep 10 '14 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. – Jacob Vlijm Sep 11 '14 at 05: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/ – Syi Kargath Sep 11 '14 at 05:54
-
I mean on the .desktop file itself where is it stored? There is probably a small error in the file. – Jacob Vlijm Sep 11 '14 at 06:08
-
what .desktop file? I said I used main menu. there isn't anything on my desktop – Syi Kargath Sep 11 '14 at 06:22
-
Your post sais you try to create a launcher; how? – Jacob Vlijm Sep 11 '14 at 06:24
-
with main menu, alacarte – Syi Kargath Sep 11 '14 at 06:25
1 Answers
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 afterIcon=
with the path to your icon, including the.png
extension.
Note
You might have to log out and back in to see the result.

Jacob Vlijm
- 83,767
-
-
@SyiKargath Then could you paste the content of the file in your post? Alacarte consequently removes the extenion. – Jacob Vlijm Sep 11 '14 at 07:21
-
Icon=/home/randy/Pictures/minecraft_icon_by_dharmainitiative2010-d33ca5p – Syi Kargath Sep 11 '14 at 07:23
-
I don't see a
.png
extension, like I mentioned in my answer. I assume it is in the icon's name. – Jacob Vlijm Sep 11 '14 at 07:25 -
-
if the icon's name is
minecraft_icon_by_dharmainitiative2010-d33ca5p.png
, absolutely. As mentioned, you might have to log out/in before you see the result. – Jacob Vlijm Sep 11 '14 at 07:28 -
not only did it not work but logging out froze my machine. I forced a shutdown and now my mouse pointer is nowhere to be found – Syi Kargath Sep 11 '14 at 07:44
-
Then something else is wrong with your system. There is no way editing a .desktop file like I explained can cause trouble like this. – Jacob Vlijm Sep 11 '14 at 07:46
-
so, I feel very dumb but which one should I be editing? alacarte-made.desktop, alacarte-made.desktop~, alacarte-made-1.desktop? – Syi Kargath Sep 11 '14 at 08:02
-
@SyiKargath The one ending with
~
is just a gedit backup file, don't edit that one! It looks like you made more than one launcher; To see which one is "the right one", you can right-click, go to "properties", then "permissions" tab, then tick "allow to execute". Now you can see/recognize the file, named as you named it. – Jacob Vlijm Sep 11 '14 at 08:07