qubes-rpc: add 'wait-for-session=1' option for some services

Configure selected services to wait until GUI session is available.

QubesOS/qubes-issues#2974
This commit is contained in:
Marek Marczykowski-Górecki 2017-08-05 21:39:42 +02:00
parent 5ecd51dab7
commit c5fae6ac55
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724
9 changed files with 21 additions and 0 deletions

View File

@ -274,6 +274,9 @@ install-common: install-doc
install -d $(DESTDIR)/etc/qubes/rpc-config install -d $(DESTDIR)/etc/qubes/rpc-config
install -m 0644 qubes-rpc/rpc-config.README $(DESTDIR)/etc/qubes/rpc-config/README install -m 0644 qubes-rpc/rpc-config.README $(DESTDIR)/etc/qubes/rpc-config/README
for config in qubes-rpc/*.config; do \
install -m 0644 $$config $(DESTDIR)/etc/qubes/rpc-config/`basename $$config .config`; \
done
install -d $(DESTDIR)/etc/qubes/suspend-pre.d install -d $(DESTDIR)/etc/qubes/suspend-pre.d
install -m 0644 qubes-rpc/suspend-pre.README $(DESTDIR)/etc/qubes/suspend-pre.d/README install -m 0644 qubes-rpc/suspend-pre.README $(DESTDIR)/etc/qubes/suspend-pre.d/README

View File

@ -33,6 +33,12 @@ etc/qubes-suspend-module-blacklist
etc/qubes/autostart/* etc/qubes/autostart/*
etc/qubes/post-install.d/README etc/qubes/post-install.d/README
etc/qubes/post-install.d/*.sh etc/qubes/post-install.d/*.sh
etc/qubes/rpc-config/qubes.OpenInVM
etc/qubes/rpc-config/qubes.OpenURL
etc/qubes/rpc-config/qubes.SelectFile
etc/qubes/rpc-config/qubes.SelectDirectory
etc/qubes/rpc-config/qubes.StartApp
etc/qubes/rpc-config/qubes.InstallUpdatesGUI
etc/qubes/suspend-post.d/README etc/qubes/suspend-post.d/README
etc/qubes/suspend-post.d/*.sh etc/qubes/suspend-post.d/*.sh
etc/qubes/suspend-pre.d/README etc/qubes/suspend-pre.d/README

View File

@ -0,0 +1 @@
wait-for-session=1

View File

@ -0,0 +1 @@
wait-for-session=1

View File

@ -0,0 +1 @@
wait-for-session=1

View File

@ -0,0 +1 @@
wait-for-session=1

View File

@ -0,0 +1 @@
wait-for-session=1

View File

@ -0,0 +1 @@
wait-for-session=1

View File

@ -520,6 +520,12 @@ rm -f %{name}-%{version}
%config(noreplace) /etc/qubes-rpc/qubes.GetDate %config(noreplace) /etc/qubes-rpc/qubes.GetDate
%dir /etc/qubes/rpc-config %dir /etc/qubes/rpc-config
/etc/qubes/rpc-config/README /etc/qubes/rpc-config/README
%config(noreplace) /etc/qubes/rpc-config/qubes.OpenInVM
%config(noreplace) /etc/qubes/rpc-config/qubes.OpenURL
%config(noreplace) /etc/qubes/rpc-config/qubes.SelectFile
%config(noreplace) /etc/qubes/rpc-config/qubes.SelectDirectory
%config(noreplace) /etc/qubes/rpc-config/qubes.StartApp
%config(noreplace) /etc/qubes/rpc-config/qubes.InstallUpdatesGUI
%dir /etc/qubes/autostart %dir /etc/qubes/autostart
%config(noreplace) /etc/default/grub.qubes %config(noreplace) /etc/default/grub.qubes
/etc/qubes/autostart/README.txt /etc/qubes/autostart/README.txt