Re: [Nix-dev] Chromium extensions
I've found something similar to that with dmenu - I think it caches its path lookups or something so that it can launch quickly. The result is that dmenu keeps launching the same versions of things because it's still has the full path into the store cached. I'm sure there's a way to fix that more easily than "logout/login" but I haven't found it yet. This is different though: the extension icons that appear to the right of the URL bar are all puzzle pieces, and the extensions don't work. In the past, I've made a list of the extensions, uninstalled them all and reinstalled them, but that's kind of a pain and not something I want to do every time. For what it's worth, seems this is an ongoing issue across OS for Chromium. I just have found a reliable way to trigger it. :) Judson On Tue, Apr 4, 2017 at 3:58 PM ben...@gmail.comwrote: > Are you talking about the desktop app launchers that show up in the > kde/gnome/whatever application menus? Because yeah, that totally happens. > The issue is that chrome writes the app's .destop file (at > ~/.local/share/applications/chrome-.desktop) with the full > /nix/store path to the non-wrapped google-chrome executable, which changes > every time the derivation gets built. If the old google-chrome executable > is still there _and_ you already have chrome running, it will dispatch the > launch to the running chrome. If the old executable is still there but > chrome is not running, it will launch the outdated version of chrome. If > the old executable is gone, your desktop xdg launchers are now broken. > > One quick workaround is to run: > > sed -i 's%/nix/store.*/google-chrome%google-chrome-stable%' > ~/.local/share/applications/chrome-*.desktop > > That will fix up all the existing launchers so they should work across > Chrome updates, but newly-created ones will still get the hardcoded > /nix/store path, and I think chrome also rewrites those .desktop files from > time to time, probably when there are new versions of the extensions. > > I'm not sure what the right long-term fix is for this issue. If anybody > knows how to convince chrome to use an executable name other than its full > binary path, that would be ideal. Otherwise, maybe a hook to run at user > login that fixes up any existing launchers? > > - Ben > > (sorry for sending html email - it's to avoid gmail inserting newlines in > the middle of that sed command) > > > On Tue, Apr 4, 2017 at 11:13 AM, Judson Lester wrote: > > I just updated to 17.03, but it seems to happen whenever I update > chromium. > > > > On Tue, Apr 4, 2017 at 6:36 AM Tomasz Czyż > wrote: > >> > >> Works for me. > >> > >> What version of nix/nixos do you use? > >> > >> 2017-04-04 8:42 GMT+01:00 Judson Lester : > >>> > >>> I've found that every time I update Chromium, all my extensions get ... > >>> lost? Their icons become puzzle pieces, and their behavior is erratic. > Is > >>> there a fix for this, or an easy way to reinstall them all? > >>> > >>> Judson > >>> > >>> ___ > >>> nix-dev mailing list > >>> nix-dev@lists.science.uu.nl > >>> http://lists.science.uu.nl/mailman/listinfo/nix-dev > >>> > >> > >> > >> > >> -- > >> Tomasz Czyż > > > > > > ___ > > nix-dev mailing list > > nix-dev@lists.science.uu.nl > > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Chromium extensions
Are you talking about the desktop app launchers that show up in the kde/gnome/whatever application menus? Because yeah, that totally happens. The issue is that chrome writes the app's .destop file (at ~/.local/share/applications/chrome-.desktop) with the full /nix/store path to the non-wrapped google-chrome executable, which changes every time the derivation gets built. If the old google-chrome executable is still there _and_ you already have chrome running, it will dispatch the launch to the running chrome. If the old executable is still there but chrome is not running, it will launch the outdated version of chrome. If the old executable is gone, your desktop xdg launchers are now broken. One quick workaround is to run: sed -i 's%/nix/store.*/google-chrome%google-chrome-stable%' ~/.local/share/applications/chrome-*.desktop That will fix up all the existing launchers so they should work across Chrome updates, but newly-created ones will still get the hardcoded /nix/store path, and I think chrome also rewrites those .desktop files from time to time, probably when there are new versions of the extensions. I'm not sure what the right long-term fix is for this issue. If anybody knows how to convince chrome to use an executable name other than its full binary path, that would be ideal. Otherwise, maybe a hook to run at user login that fixes up any existing launchers? - Ben (sorry for sending html email - it's to avoid gmail inserting newlines in the middle of that sed command) On Tue, Apr 4, 2017 at 11:13 AM, Judson Lesterwrote: > I just updated to 17.03, but it seems to happen whenever I update chromium. > > On Tue, Apr 4, 2017 at 6:36 AM Tomasz Czyż wrote: >> >> Works for me. >> >> What version of nix/nixos do you use? >> >> 2017-04-04 8:42 GMT+01:00 Judson Lester : >>> >>> I've found that every time I update Chromium, all my extensions get ... >>> lost? Their icons become puzzle pieces, and their behavior is erratic. Is >>> there a fix for this, or an easy way to reinstall them all? >>> >>> Judson >>> >>> ___ >>> nix-dev mailing list >>> nix-dev@lists.science.uu.nl >>> http://lists.science.uu.nl/mailman/listinfo/nix-dev >>> >> >> >> >> -- >> Tomasz Czyż > > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Chromium extensions
I just updated to 17.03, but it seems to happen whenever I update chromium. On Tue, Apr 4, 2017 at 6:36 AM Tomasz Czyżwrote: > Works for me. > > What version of nix/nixos do you use? > > 2017-04-04 8:42 GMT+01:00 Judson Lester : > > I've found that every time I update Chromium, all my extensions get ... > lost? Their icons become puzzle pieces, and their behavior is erratic. Is > there a fix for this, or an easy way to reinstall them all? > > Judson > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > > > > -- > Tomasz Czyż > ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
Re: [Nix-dev] Chromium extensions
Works for me. What version of nix/nixos do you use? 2017-04-04 8:42 GMT+01:00 Judson Lester: > I've found that every time I update Chromium, all my extensions get ... > lost? Their icons become puzzle pieces, and their behavior is erratic. Is > there a fix for this, or an easy way to reinstall them all? > > Judson > > ___ > nix-dev mailing list > nix-dev@lists.science.uu.nl > http://lists.science.uu.nl/mailman/listinfo/nix-dev > > -- Tomasz Czyż ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev
[Nix-dev] Chromium extensions
I've found that every time I update Chromium, all my extensions get ... lost? Their icons become puzzle pieces, and their behavior is erratic. Is there a fix for this, or an easy way to reinstall them all? Judson ___ nix-dev mailing list nix-dev@lists.science.uu.nl http://lists.science.uu.nl/mailman/listinfo/nix-dev