Quellcode durchsuchen

Permissions on mesh desktop notifications

Bob Mottram vor 8 Jahren
Ursprung
Commit
4a4a9f84ca
Es ist kein Account mit dieser Commiter-Email verbunden
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  1. 1
    1
      src/zeronetavahi

+ 1
- 1
src/zeronetavahi Datei anzeigen

@@ -132,7 +132,7 @@ function detect_new_tox_users {
132 132
                     # get the nick of the user
133 133
                     toxuser="$(echo "$line" | awk -F ' ' '{print $1}')"
134 134
 
135
-                    notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information
135
+                    export DISPLAY=:0.0 && export XAUTHORITY=/home/$MESH_USERNAME/.Xauthority && sudo -u MESH_USERNAME /usr/bin/notify-send $"$toxuser" $"has joined the mesh" --icon=dialog-information
136 136
                 fi
137 137
             fi
138 138
         done < "$CURRENT_USERS_FILE"