I installed Foxit Reader from the Foxi web page. Hear is the link of the Foxi reader. I have a problem, the icon in ubuntu dashboard is there but the picture is missing. When I first installed the picture was there, but suddenly the picture is gone. Please anyone help me. Hear is a picture of the dashboard.
4 Answers
I too faced a similar problem when installing FoxitReader in Ubuntu 12.04. I dug out a solution by going through the .desktop launcher file.
There will probably be 2 FoxitReader.desktop files on your system.
- The global one at
/usr/share/applications/FoxitReader.desktop
, and - The local one at
~/.local/share/applications/FoxitReader.desktop
which overrides the global one
In my case the local file had its Icon
pointing to a non-existent png file ~/.local/share/icons/hicolor/64x64/apps/FoxitReader.png
. I just copied the icon file from the /usr/share/icons/hicolor/64x64/apps
directory to the pointed to location with
mkdir -p ~/.local/share/icons/hicolor/64x64/apps
cp /usr/share/icons/hicolor/64x64/apps/FoxitReader.png ~/.local/share/icons/hicolor/64x64/apps`
and Voila! The icon started showing again.
EDIT:
I just checked and simply setting Icon=FoxitReader
as done in the global .desktop file is enough
-
Hey, I'm having the same problem but I can't find the global.desktop file you were talking about. Jun 4, 2016 at 10:03
-
Hey, just try running
sudo find / -name 'FoxitReader.desktop'
to locate the file on your system. If you can't find it, google for a FoxitReader.desktop file (I found one at gist.github.com/hakan648/4aca7b6709fd2fd09b3f) or just look at any other .desktop file on your system to see the format the file is written and write one yourself.– krypto07Jul 9, 2016 at 7:45 -
-
For me, I just changed the
default-application-icon
at theIcon
entry in the .desktop file (local to profile) toFoxitReader
and it worked (16.04)– JorgeeFGNov 30, 2016 at 15:01 -
1For me setting
Icon=FoxitReader
does not work, I had to specify the full path. I am on Linux Mint, though.– a06eJul 28, 2017 at 13:48
Figured it out thanks to krypto07's answer
- Open
FoxitReader.desktop
file by enteringsudo -H gedit ~/.local/share/applications/FoxitReader.desktop
in terminal (i am using gedit - you might use any text editor) - Here, you will find
Icon=/home/<pc name>/.local/share/icons/hicolor/64x64/apps/FoxitReader.png
- Give the exact path of the icon/image which you want to display and save it.
Note: you can find icon for foxitreader in the folder named "image" which can be found in the installation folder of it or you can download it or you can display any image which you want to display, you just have to give correct full path of the image.
Actually you can just remove the settings under ~/.local/share/applications/
directory:
- Check if you have
/user/share/applications/FoxitReader.desktop
- Open it and confirm you have:
Icon=FoxitReader
cd ~/.local/share/applications/
andmv FoxitReader.desktop FoxitReader.backup
- Restart your computer and search in top left corner "Search your computer" for "foxit", now you should see the icon, just drag it to your launcher bar.
- Now you are good to remove
FoxitReader.backup
you created in step
I too faced this issue.
Reason: unable to locate png image file.
As shown in above image, search in Dashboard looks for png image at .local/share/icons/hicolor/...
directory. But it is able to locate FoxitReader.png image there.
Step followed by to resolve this issue:
Searched for FoxitReader.png using find command. "FoxitReader.png" was shown in
/usr/share/local/icons/hicolor/...
. Search output:
Simply copied all the png image in
/usr/share/local/icons/hicolor/...
to~/.local/share/icons/hicolor/...
This immediately shows icons on dashboard search. No reboot required.