Change:
dontStrip = true; }; <del> insync-fhsenv = buildFHSEnv { name = "${pname}-${version}"; inherit meta; # for including insync's xdg data dirs extraOutputsToInstall = [ "share" ]; </del> <ins> in buildFHSEnvBubblewrap { name = pname; inherit meta; </ins> <del> targetPkgs = pkgs: with pkgs; [ insync-pkg libudev0-shim ]; </del> <ins> targetPkgs = pkgs: with pkgs; [ insync-pkg libudev0-shim ]; </ins> <del> runScript = writeShellScript "insync-wrapper.sh" '' </del> <ins> runScript = writeShellScript "insync-wrapper.sh" '' </ins> # QT_STYLE_OVERRIDE was used to suppress a QT warning, it should have no actual effect for this binary. <del> export QT_STYLE_OVERRIDE=Fusion </del> <ins> echo Unsetting QT_STYLE_OVERRIDE=$QT_STYLE_OVERRIDE echo Unsetting QT_QPA_PLATFORMTHEME=$QT_QPA_PLATFORMTHEME unset QT_STYLE_OVERRIDE unset QPA_PLATFORMTHEME </ins> # xkb configuration needed: https://github.com/NixOS/nixpkgs/issues/236365 export XKB_CONFIG_ROOT=${xkeyboard_config}/share/X11/xkb/ <del> exec "${insync-pkg.outPath}/lib/insync/insync" "$@" ''; </del> <ins> echo XKB_CONFIG_ROOT=$XKB_CONFIG_ROOT </ins> <del> # "insync start" command starts a daemon. dieWithParent = false; }; </del> <ins> # For debuging: # export QT_DEBUG_PLUGINS=1 # find -L /usr/share -name "*insync*" </ins> <del> in stdenvNoCC.mkDerivation { inherit pname version meta; </del> <ins> exec /usr/lib/insync/insync "$@" ''; </ins> <del> dontUnpack = true; installPhase = '' mkdir -p $out/bin ln -s ${insync-fhsenv}/bin/${insync-fhsenv.name} $out/bin/insync ln -s ${insync-pkg}/share $out/share ''; </del> <ins> # As intended by this bubble wrap, share as much namespaces as possible with user. unshareUser   = false; unshareIpc    = false; unsharePid    = false; unshareNet    = false; unshareUts    = false; unshareCgroup = false; # Since "insync start" command starts a daemon, this daemon should die with it. dieWithParent = false; </ins> }

Discussion:
I have installed the latest unstable version of Insync. I start it, configure my account, and the following happens: No systry icon appears When I close the Insync window and try to start it again, it does nothing If I execute any command from the console, I get this message: Insync doesn't seem to be running. Start it first. IMPORTANT: It's seems sync continue working but I can't show the Insync window. Steps to reproduce the behavior: package package from Rofi account and all works Insync window show the Insync window again to view files or change config I should be able to reopen the Insync window and also use the commands from the console. system: host os: multi-user?: sandbox: version: nixpkgs:
I discover more things about this: It's seems the service is running! The systry icon is invisble and stay there. When I click on the invisble char the Insync open Any terminal command over Insync works !
Thanks for the report , I will be taking a look.
I have the same. and i tried with x11 and wayland, with plasma and gnome, and with configuration and with just closing the welcome screen.. Always the same. Freshly installed, you see the GUI exactly one Time.
Hey folks, it seems a hard nut to crack. I am scratching my head why this is happening. I have even looked into how buildFHSBubblwrap works. Meanwhile, if you can get a system-tray plugin for your desktop environment, you may have the luck of being able to open the interface for you. Until then, any help is welcome. I will keep digging another day!
From the system tray it opens, but since the icon is not painted you have to guess where the click is. Is there any way to launch the click action from the terminal? Thanks for investigate it! !
I should have fixed these reported problems in : When I close the Insync window and try to start it again, it does nothing If I execute any command from the console, I get this message: Insync doesn't seem to be running. Start it first.
I won't be able to fix the "No systry icon appears" issue still, it's a known bug and I suspect it's a defect in upstream closed source code.

Expecting to be available next week ish for both 23.05 and unstable.
Also to 23.05.
FYI: Also, a new package for nautilus users: please give a :+1: for faster merging!