GNOME: Application icons are not displayed immediately after installation

OpenSubmitted by sirgazil.
Details
2 participants
  • Mark H Weaver
  • sirgazil
Owner
unassigned
Severity
normal
S
S
sirgazil wrote on 6 May 2019 01:19
(name . bug-guix)(address . bug-guix@gnu.org)
16a8a4b4c07.ad1f7a9a40480.985002149086753257@zoho.com
Hi,
I installed the GNU system in a real machine using Guix 1.0 ISO installer (https://ftp.gnu.org/gnu/guix/guix-system-install-1.0.0.x86_64-linux.iso.xz).
Whenever I install a desktop application, the application icon does not show up immediately in the list of available applications. I have to log out and log in again to be able to see it.

## Steps to reproduce
1. Install a desktop application (I tried GIMP, Scribus, Inkscape, Audacity)2. Click on "Activities".3. Click on "Show Applications" (the button with nine dots).

## Unexpected result
The icon of the installed application is not in the list.

## Expected result.
The icon of the installed application is in the list.

---https://sirgazil.bitbucket.io/
M
M
Mark H Weaver wrote on 6 May 2019 04:21
(name . sirgazil)(address . sirgazil@zoho.com)(address . 35594@debbugs.gnu.org)
87pnowqq3h.fsf@netris.org
Hi,
sirgazil <sirgazil@zoho.com> writes:
Toggle quote (8 lines)> I installed the GNU system in a real machine using Guix 1.0 ISO> installer> (https://ftp.gnu.org/gnu/guix/guix-system-install-1.0.0.x86_64-linux.iso.xz).>> Whenever I install a desktop application, the application icon does> not show up immediately in the list of available applications. I have> to log out and log in again to be able to see it.
Indeed, this has always been the case on Guix, and I agree it would begood to fix it. FWIW, another way to refresh the list of availableapplications from GNOME Shell is to type: Alt-F2, and then enter thesingle letter "r" as the command. That should restart GNOME Shellwithout affecting your other applications. (Unfortunately for me, thisonly works under Xorg, not Wayland.)
A related issue is that if you upgrade a program in Guix, and thenlaunch it using GNOME Shell, it will launch the old one. That's becauseour installed desktop files are specifically rewritten to launch theprogram via an absolute path name /gnu/store/xxxxx/bin/* instead ofsimply looking in PATH, and GNOME Shell continues to use the old desktopfiles until it's restarted. This was implemented back in 2016, here:
https://git.savannah.gnu.org/cgit/guix.git/commit/?id=d31860b9de07810e114490db5cc160a8b078c58d
I remember thinking it was a bad idea at the time, but I didn't haveenough energy to speak up about it.
Mark
S
S
sirgazil wrote on 6 May 2019 13:34
(name . Mark H Weaver)(address . mhw@netris.org)(name . 35594)(address . 35594@debbugs.gnu.org)
16a8ceca4cb.feaa0c4945447.2719212968817627071@zoho.com
---- On Sun, 05 May 2019 21:21:59 -0500 Mark H Weaver <mhw@netris.org> wrote ----
> Hi, > > sirgazil <sirgazil@zoho.com> writes: > > > I installed the GNU system in a real machine using Guix 1.0 ISO > > installer > > (https://ftp.gnu.org/gnu/guix/guix-system-install-1.0.0.x86_64-linux.iso.xz). > > > > Whenever I install a desktop application, the application icon does > > not show up immediately in the list of available applications. I have > > to log out and log in again to be able to see it. > > Indeed, this has always been the case on Guix, and I agree it would be > good to fix it. FWIW, another way to refresh the list of available > applications from GNOME Shell is to type: Alt-F2, and then enter the > single letter "r" as the command. That should restart GNOME Shell > without affecting your other applications. (Unfortunately for me, this > only works under Xorg, not Wayland.) > > A related issue is that if you upgrade a program in Guix, and then > launch it using GNOME Shell, it will launch the old one. That's because > our installed desktop files are specifically rewritten to launch the > program via an absolute path name /gnu/store/xxxxx/bin/* instead of > simply looking in PATH, and GNOME Shell continues to use the old desktop > files until it's restarted. This was implemented back in 2016, here: > > https://git.savannah.gnu.org/cgit/guix.git/commit/?id=d31860b9de07810e114490db5cc160a8b078c58d > > I remember thinking it was a bad idea at the time, but I didn't have > enough energy to speak up about it.

I see... Thanks for the information, Mark.
?