New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
glib: Add support for GNOME Console #165975
Conversation
While at it, should we also add Pantheon Terminal @bobby285271 @davidak? |
Personally, this sounds good to me. I think I actually have a very wired question for gnome-console, if I have a
And a #!/usr/bin/env bash
echo "hello"
if [[ "${1}" == "--randomarg" ]]
then
echo "world"
fi
sleep 10 Can |
Not sure, still have not rebuilt my system with this patch. I can only say that GNOME Terminal does print both lines when the script is started through the desktop file in GNOME Shell.
|
Actually, testing using the following shows that the patch is not sufficient as is: $ env PATH=$(nix-build -A gnome-console)/bin $(nix-build https://github.com/jtojnar/nixpkgs/archive/glib-gnome-console.tar.gz -A glib.bin)/bin/gio launch ~/.local/share/applications/test.desktop
Unknown option --randomarg |
I am actually testing the change using the "workaround" mentioned in the upstream issue, that is enable |
Weirdly, having only |
Interestingly, Tilix supports both
|
The window closing immediately might have something to do with the Edit: Turns out I need |
Testing with the following fish script and your desktop file, it seems all tested emulators support argument per argument, only KGX needs the whole command as a single argument. for termpkg in gnome.gnome-terminal mate.mate-terminal xfce.xfce4-terminal gnome-console tilix libsForQt5.konsole xterm
echo Testing $termpkg
env PATH=(nix-build -A bash)/bin:(nix-build -A coreutils)/bin:(nix-build -A $termpkg)/bin (nix-build https://github.com/jtojnar/nixpkgs/archive/glib-gnome-console.tar.gz -A glib.bin)/bin/gio launch ~/.local/share/applications/test.desktop
read foo --prompt-str="Enter to continue"
end |
GNOME Console (aka King’s Cross) is the default terminal emulator in GNOME 42. Let’s make GLib aware of it so that apps relying on it (e.g. GNOME Shell) can launch terminal apps like htop. This is a downstream patch since GLib does not want to add any more terminal emulators: https://gitlab.gnome.org/GNOME/glib/-/issues/2618
Just like we did for GNOME’s in the parent commit.
356471a
to
063bd1e
Compare
Okay, this seems to work. |
This can go to staging, since xterm is always available as a fallback. |
Description of changes
GNOME Console (aka King’s Cross) is the default terminal emulator in GNOME 42. Let’s make GLib aware of it so that apps relying on it (e.g. GNOME Shell) can launch terminal apps like htop.
This is a downstream patch since GLib does not want to add any more terminal emulators: https://gitlab.gnome.org/GNOME/glib/-/issues/2618
Things done
sandbox = true
set innix.conf
? (See Nix manual)nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)nixos/doc/manual/md-to-db.sh
to update generated release notes