Sfoglia il codice sorgente

Permissions on mesh desktop notifications

Bob Mottram 8 anni fa
parent
commit
4a4a9f84ca
No account linked to committer's email
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/zeronetavahi

+ 1
- 1
src/zeronetavahi Vedi File

132
                     # get the nick of the user
132
                     # get the nick of the user
133
                     toxuser="$(echo "$line" | awk -F ' ' '{print $1}')"
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
                 fi
136
                 fi
137
             fi
137
             fi
138
         done < "$CURRENT_USERS_FILE"
138
         done < "$CURRENT_USERS_FILE"