snowfallorg / nix-software-center

A simple gtk4/libadwaita software center to easily install and manage nix packages
GNU General Public License v3.0
560 stars 16 forks source link

"Run without installing" fails #4

Open tejing1 opened 1 year ago

tejing1 commented 1 year ago

When I try to "Run without installing" wezterm (just what I happened to try), I get env: ‘gtk-launch’: No such file or directory on the console and nothing else happens.

I presume this is because I run i3 and have no proper desktop environment installed. Presumably a version of gtk-launch from the nix store should be used, rather than searching PATH.

And yes, I can nix run nixpkgs#wezterm without a problem.

vlinkz commented 1 year ago

Most likely no detected terminal emulator is installed to open it, I'll add gnome-console as a dependency and that should likely work. I'll also look into adding an option so that users can choose what terminal they use in the future. Out of curiosity what terminal do you use right now?

tejing1 commented 1 year ago

urxvt, from the rxvt-unicode package.

davidak commented 1 year ago

There is no standard (xdg-spec) for default terminal yet. There is xdg-terminal-exec now.

https://gitlab.freedesktop.org/xdg/xdg-specs/-/issues/54 https://gitlab.freedesktop.org/xdg/xdg-specs/-/merge_requests/46

https://gitlab.gnome.org/GNOME/glib/-/issues/338#note_1076172 https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2839