-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some applications are missing icons in gnome-shell activity and dock (not reproducible in a fresh account) #45935
Comments
And I still cannot reproduce. Could you share your P.S. |
Here is my I have this issue on both machines where i installed NixOS. |
One thing that comes to mind is nixpkgs/nixos/modules/config/system-path.nix Lines 140 to 142 in 8c172c4
Try |
I tried Note that Firefox also had this issue, but then it was fixed, apparently in this commit: 6ca5577. |
@jtojnar, could you try reinstalling your GNOME Shell? Apparently my icons disappeared after i reinstalled it somehow. |
I did restart GNOME Shell (using alt-f2 Firefox issue was caused by a broken symlink in the package. Also unrelated, Chromium’s icon matches, therefore the issue must be unrelated to those two: $ grep Icon $(nix-build -A chromium)/share/applications/chromium-browser.desktop
Icon=chromium
$ find $(nix-build -A chromium)/share/icons -follow -name chromium.png
/nix/store/hmnd65lwj5zgd3hm18s1h8sahspjkfs2-chromium-68.0.3440.106/share/icons/hicolor/24x24/apps/chromium.png
/nix/store/hmnd65lwj5zgd3hm18s1h8sahspjkfs2-chromium-68.0.3440.106/share/icons/hicolor/256x256/apps/chromium.png
/nix/store/hmnd65lwj5zgd3hm18s1h8sahspjkfs2-chromium-68.0.3440.106/share/icons/hicolor/48x48/apps/chromium.png
/nix/store/hmnd65lwj5zgd3hm18s1h8sahspjkfs2-chromium-68.0.3440.106/share/icons/hicolor/64x64/apps/chromium.png
/nix/store/hmnd65lwj5zgd3hm18s1h8sahspjkfs2-chromium-68.0.3440.106/share/icons/hicolor/128x128/apps/chromium.png
/nix/store/hmnd65lwj5zgd3hm18s1h8sahspjkfs2-chromium-68.0.3440.106/share/icons/hicolor/22x22/apps/chromium.png |
By "reinstalling GNOME shell" I meant something like However, now I do not have |
Indeed, i could not reproduce the issue in a fresh user account. However, i have the issue on two different machines in user accounts created more than 2 years ago, which i did not synchronise between them. I wonder where to look for the problem... I'll try to bisect the problem when i have more time. Thanks for your help. |
I cannot reproduce the issue in a fresh account even after copying over my Where else could some configuration be hiding? Could something get out of order in my |
Try to check if the profile you installed the packages to is listed in |
The output of |
It seems that my icons are in place: $ ls /nix/store/*-vlc-*/share/icons/hicolor/*/apps/*.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/128x128/apps/vlc-kb.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/128x128/apps/vlc.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/128x128/apps/vlc-xmas.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/16x16/apps/vlc.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/256x256/apps/vlc.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/32x32/apps/vlc.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/48x48/apps/vlc.png
/nix/store/bjh7z6mcx1jhgmdfn72gp70j049cw6b3-vlc-3.0.3/share/icons/hicolor/48x48/apps/vlc-xmas.png @jtojnar, could you suggest me some documentation or explain how icon lookup works in GNOME Shell, so that i could try to trace where it breaks? By the way, from which directory did you execute this line? $ find $(nix-build -A chromium)/share/icons -follow -name chromium.png |
Icon Theme Spec should be used. Basically,
I ran the |
Thanks for the link to Icon Theme Specification. Running
and the same thing in the fresh account. I tried $ xdg-open /home/alexey/.nix-profile/share/icons/hicolor/256x256/apps/vlc.png and it worked fine. (There was a small anomaly in Looking for
Nothing is found in |
Are the icons shown when you install the packages using |
Yes. |
I will remove my previous comment. So, i fixed the problem on both computers. What fixed it was upgrading to 18.09 (this itself did not fix the icons) and then executing nix-env -u '*' This was quite strange, because VLC and some other affected applications were not updated, but all icons got fixed. Downgrading back to 18.03, while keeping applications installed with |
I am closing this as i still do not see how to reproduce it, and maybe it will not occur again. |
I observe that installing, upgrading, or reinstalling packages imperatively in user profile behaves rather strangely, and the effects are difficult to predict or reproduce. For example, my icons disappeared after some command of the form I do not know yet how to report this as an issue... |
After the latest upgrade to NixOS Reinstalling affected applications did not help. |
I am reopening this. I still cannot reproduce the problem in a fresh account, but I have it again in my usual account with apparently the same symptoms, and I cannot fix it. |
I upgraded to Closing this (at least for another half a year). |
For me, my issue was selecting GNOME instead of GNOME+Xorg on login (click the cog icon). |
Fascinating. |
Issue description
I have several applications (installed with
nix-env -i
) that are missing icons in gnome-shell activity and dock (dash-to-dock). Here are a few: Chromium, Emacs, Inkscape, Geary, LibreOffice, VLC.Firefox was also missing the icon, but it was fixed: #38536.
Similar issues are mentioned in #247 and #16758.
There is no problems with applications installed using
environment.systemPackages
.Steps to reproduce
I cannot currently reproduce the issue in a fresh user account, but I have it in my user accounts on two different machines.
In my case, with GNOME desktop:
If i restart gnome-shell and look for VLC, the VLC icon is missing.
Technical details
Output of
nix-shell -p nix-info --run "nix-info -m"
:The text was updated successfully, but these errors were encountered: