Commit 6860cd15 authored by Tails developers's avatar Tails developers
Browse files

Revert "Start time synchronization notification helper from XDG autostart."

This reverts commit 1f1fdc65.

This commit makes the time sync notification appear even when the
network is down. See todo/time_sync_notification_without_network
parent 79f898d3
...@@ -210,9 +210,17 @@ is_clock_way_off() { ...@@ -210,9 +210,17 @@ is_clock_way_off() {
return 1 return 1
} }
start_notification_helper() {
export DISPLAY=':0.0'
export XAUTHORITY="$(echo /var/run/gdm3/auth-for-$LIVE_USERNAME-*/database)"
exec /bin/su -c /usr/local/bin/tails-htp-notify-user "$LIVE_USERNAME" &
}
### Main ### Main
start_notification_helper
# Delegate time setting to other daemons if Tor connections work # Delegate time setting to other daemons if Tor connections work
if tor_is_working; then if tor_is_working; then
log "Tor has already opened a circuit" log "Tor has already opened a circuit"
......
[Desktop Entry]
Name=tails-htp-notify-user
GenericName=notify user of time synchronization process
Comment=notify user of time synchronization process
Exec=/usr/local/bin/tails-htp-notify-user
Terminal=false
Type=Application
Categories=GNOME;X-GNOME-PersonalSettings;
NoDisplay=true
MimeType=application/x-tails-htp-notify-user;
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