Change:
running from displays a transparent window which is only drawn after 40 seconds (I timed it, it's not an exaggeration). Similarly, clicking the menu button takes about 20s to display the menu. Only the close button is "fast". Steps to reproduce the behavior: 's slow ... it displays fast on the right is the transparent window and my wallpaper. ! I'm not running gnome, but xfce+i3+picom if it's relevant. But as junction eventually works, something is probably not missing. cc system: host os: multi-user?: sandbox: version: channels(root): channels(symphorien): nixpkgs:
Opens within a few seconds here with LXQt on a twelve-year old CPU... tested with:
I'm using plasma on unstable and I experience normal app delay. (1-2 seconds). (Maybe one or two iterations old). There is ; however, I do not know how applicable it is. I tried to follow the steps using a shell based on the derivation (plus blueprint-compiler) but I encounter the following error (will try again tomorrow) PS: Also thanks, I didnt realize that I needed to update junction to 1.6 (I'll try to do it soon, .... but its a javascript dependency)
Note: the issue does not happen with the flatpak.
it's actually caused by setting to 1, a workaround to

Discussion:
, stdenv , fetchFromGitHub , appstream-glib <ins> , blueprint-compiler </ins> , desktop-file-utils , gobject-introspection , meson

stdenv.mkDerivation rec { pname = "junction"; <del> version = "1.5.0"; </del> <ins> version = "1.6"; </ins> src = fetchFromGitHub { owner = "sonnyp"; repo = "junction"; rev = "v${version}"; <del> sha256 = "sha256-jS4SHh1BB8jk/4EP070X44C4n3GjyCz8ozgK8v5lbqc="; </del> <ins> sha256 = "sha256-95lKap0VKLxX5Vax2tK0cAcJ/XgQddoN46tXHo+MtYc="; fetchSubmodules = true; </ins> }; nativeBuildInputs = [ appstream-glib <ins> blueprint-compiler </ins> desktop-file-utils gobject-introspection meson

libportal-gtk4 ]; <ins> postPatch = '' # gjs uses the invocation name to add gresource files # - https://gitlab.gnome.org/GNOME/gjs/-/blob/6aca7b50785fa1638f144b17060870d721e3f65a/modules/script/package.js#L159 # - https://gitlab.gnome.org/GNOME/gjs/-/blob/6aca7b50785fa1638f144b17060870d721e3f65a/modules/script/package.js#L37 # To work around this, we manually set the the name as done in foliate # - https://github.com/NixOS/nixpkgs/blob/3bacde6273b09a21a8ccfba15586fb165078fb62/pkgs/applications/office/foliate/default.nix#L23 sed -i "1 a imports.package._findEffectiveEntryPointName = () => 're.sonny.Junction';" src/bin.js # /usr/bin/env is not accessible in build environment substituteInPlace troll/gjspack/bin/gjspack --replace "/usr/bin/env -S gjs" "${gjs}/bin/gjs" ''; </ins> postInstall = '' <del> # autoPatchShebangs does not like "/usr/bin/env -S gjs" substituteInPlace $out/bin/re.sonny.Junction --replace "/usr/bin/env -S gjs" "/usr/bin/gjs" </del> <ins> # autoPatchShebangs does not like "/usr/bin/env -S <environment-setting> gjs -m" sed -i "1s|.*|#!/usr/bin/gjs -m|" $out/bin/re.sonny.Junction </ins> ''; meta = with lib; { <ins> mainProgram = "re.sonny.Junction"; </ins> description = "Choose the application to open files and links"; homepage = "https://apps.gnome.org/en/app/re.sonny.Junction/"; license = licenses.gpl3Plus;