Add qubes-run-gnome-terminal utility that uses --wait
This commit is contained in:
parent
c7060bb97a
commit
943f37b481
1
Makefile
1
Makefile
@ -233,6 +233,7 @@ install-common: install-doc
|
|||||||
install -m 0755 misc/qvm-features-request $(DESTDIR)$(BINDIR)/qvm-features-request
|
install -m 0755 misc/qvm-features-request $(DESTDIR)$(BINDIR)/qvm-features-request
|
||||||
install -m 0755 misc/qubes-run-terminal $(DESTDIR)/$(BINDIR)
|
install -m 0755 misc/qubes-run-terminal $(DESTDIR)/$(BINDIR)
|
||||||
install -D -m 0644 misc/qubes-run-terminal.desktop $(DESTDIR)/$(APPLICATIONSDIR)/qubes-run-terminal.desktop
|
install -D -m 0644 misc/qubes-run-terminal.desktop $(DESTDIR)/$(APPLICATIONSDIR)/qubes-run-terminal.desktop
|
||||||
|
install -m 0755 misc/qubes-run-gnome-terminal $(DESTDIR)/$(BINDIR)
|
||||||
|
|
||||||
install -D -m 0644 misc/dconf-db-local-dpi $(DESTDIR)/etc/dconf/db/local.d/dpi
|
install -D -m 0644 misc/dconf-db-local-dpi $(DESTDIR)/etc/dconf/db/local.d/dpi
|
||||||
|
|
||||||
|
1
debian/qubes-core-agent.install
vendored
1
debian/qubes-core-agent.install
vendored
@ -97,6 +97,7 @@ usr/bin/qubes-desktop-run
|
|||||||
usr/bin/qubes-open
|
usr/bin/qubes-open
|
||||||
usr/bin/qubes-session-autostart
|
usr/bin/qubes-session-autostart
|
||||||
usr/bin/qubes-run-terminal
|
usr/bin/qubes-run-terminal
|
||||||
|
usr/bin/qubes-run-gnome-terminal
|
||||||
usr/bin/qubes-vmexec
|
usr/bin/qubes-vmexec
|
||||||
usr/bin/qvm-copy
|
usr/bin/qvm-copy
|
||||||
usr/bin/qvm-copy-to-vm
|
usr/bin/qvm-copy-to-vm
|
||||||
|
12
misc/qubes-run-gnome-terminal
Executable file
12
misc/qubes-run-gnome-terminal
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
# Wrapper around gnome-terminal that runs it with --wait option
|
||||||
|
# (if supoported).
|
||||||
|
|
||||||
|
# Check if our gnome-terminal version supports --wait
|
||||||
|
# (we can't just run it and check exit code, because if it works, it will
|
||||||
|
# return the exit code of the child process)
|
||||||
|
if gnome-terminal --help-terminal-options | grep --silent -- --wait; then
|
||||||
|
exec gnome-terminal --wait "$@"
|
||||||
|
else
|
||||||
|
exec gnome-terminal "$@"
|
||||||
|
fi
|
@ -12,14 +12,7 @@ if is_command x-terminal-emulator; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
if is_command gnome-terminal; then
|
if is_command gnome-terminal; then
|
||||||
# Check if our gnome-terminal version supports --wait
|
exec qubes-run-gnome-terminal
|
||||||
# (we can't just run it and check exit code, because if it works, it will
|
|
||||||
# return the exit code of the child process)
|
|
||||||
if gnome-terminal --help-terminal-options | grep --silent -- --wait; then
|
|
||||||
exec gnome-terminal --wait
|
|
||||||
else
|
|
||||||
exec gnome-terminal
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for terminal in xfce4-terminal konsole urxvt rxvt termit terminator Eterm aterm roxterm termite lxterminal mate-terminal terminology st xterm; do
|
for terminal in xfce4-terminal konsole urxvt rxvt termit terminator Eterm aterm roxterm termite lxterminal mate-terminal terminology st xterm; do
|
||||||
|
@ -615,6 +615,7 @@ rm -f %{name}-%{version}
|
|||||||
/usr/bin/xenstore-watch-qubes
|
/usr/bin/xenstore-watch-qubes
|
||||||
/usr/bin/qubes-desktop-run
|
/usr/bin/qubes-desktop-run
|
||||||
/usr/bin/qubes-run-terminal
|
/usr/bin/qubes-run-terminal
|
||||||
|
/usr/bin/qubes-run-gnome-terminal
|
||||||
/usr/bin/qubes-open
|
/usr/bin/qubes-open
|
||||||
/usr/bin/qubes-session-autostart
|
/usr/bin/qubes-session-autostart
|
||||||
/usr/bin/qvm-console
|
/usr/bin/qvm-console
|
||||||
|
Loading…
Reference in New Issue
Block a user