Commit 7edc6469 authored by Tails developers's avatar Tails developers
Browse files

Wait with showing notification until notification-daemon is up.

Waiting on gnome-panel may be prone to race conditions.
parent 2590e359
...@@ -58,8 +58,8 @@ my $notification = $notify->create(summary => $summary, ...@@ -58,8 +58,8 @@ my $notification = $notify->create(summary => $summary,
or die "Failed to create notification object"; or die "Failed to create notification object";
debug('$notification:' . "\n" . Dumper($notification)); debug('$notification:' . "\n" . Dumper($notification));
# Make sure Gnome has started so the notification can be shown # Wait until notifications can be shown
until (system("pidof", "gnome-panel") == 0) { until (system("pidof", "notification-daemon") == 0) {
sleep 1 sleep 1
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment