Skip to content

Commit 7f644c3

Browse files
committed
Wait for GUI session on the server side
For VMs started before user logs in, notification server is not running at the VM session startup time yet. Instead of failing to start, wait for the session to become available.
1 parent fe3befc commit 7f644c3

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
/usr/bin/qubes-notification-proxy-server
22
/etc/qubes-rpc/qubes.Notifications
3+
/etc/qubes/rpc-config/qubes.Notifications

rust-notification-emitter.spec.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ forwards notifications to the host's notification daemon.
7474
%files daemon
7575
%{_bindir}/qubes-notification-proxy-server
7676
/etc/qubes-rpc/qubes.Notifications
77+
/etc/qubes/rpc-config/qubes.Notifications
7778

7879
%package license
7980
Summary: License files for the notification proxy
@@ -104,6 +105,8 @@ install -m0644 -- src/90-qubes-notification-agent.preset "$RPM_BUILD_ROOT/%_user
104105
install -D -- target/release/notification-proxy-client "$RPM_BUILD_ROOT/%_bindir/qubes-notification-proxy-client"
105106
install -D -- target/release/notification-proxy-server "$RPM_BUILD_ROOT/%_bindir/qubes-notification-proxy-server"
106107
ln -s -- ../../usr/bin/qubes-notification-proxy-server "$RPM_BUILD_ROOT/etc/qubes-rpc/qubes.Notifications"
108+
install -D -- "$RPM_BUILD_ROOT/etc/qubes/rpc-config"
109+
echo "wait-for-session=1" > "$RPM_BUILD_ROOT/etc/qubes/rpc-config/qubes.Notifications"
107110
install -m0644 -D -- LICENSE.dependencies "$RPM_BUILD_ROOT/usr/share/licenses/qubes-notification-proxy/LICENSE.dependencies"
108111

109112
%if %{with check}

0 commit comments

Comments
 (0)