Bonjour,
Merci pour les pistes.
En premier j’ai donc remplacer sudo par pkexec dans le script du pipemenu. Un terminal s’est ouvert ( voir ci-dessous) et j’ai donc entré le password de root et voici le résultat.
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/update-alternatives’ as the super user
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
Ensuite dans un terminal sous root, j’ai voulu vérifier la commande :
jjr@debian:~$ su -
Mot de passe :
root@debian:~# update-alternatives --config x-www-browser
Il existe 4 choix pour l’alternative x-www-browser (qui fournit /usr/bin/x-www-browser).
Sélection Chemin Priorité État
- 0 /usr/bin/qupzilla 80 mode automatique
1 /usr/bin/chromium 40 mode manuel
2 /usr/bin/firefox-esr 70 mode manuel
3 /usr/bin/midori 50 mode manuel
4 /usr/bin/qupzilla 80 mode manuel
Appuyez sur <Entrée> pour conserver la valeur par défaut[*] ou choisissez le numéro sélectionné :
root@debian:~# nano /usr/bin/bl-x-www-browser-pipemenu
root@debian:~# nano /usr/bin/bl-x-www-browser-pipemenu
root@debian:~# exit
déconnexion
Puis en user :
jjr@debian:~$ pkexec update-alternatives --config x-www-browser
==== AUTHENTICATING FOR org.freedesktop.policykit.exec ===
Authentication is needed to run `/usr/bin/update-alternatives’ as the super user
Authenticating as: root
Password:
polkit-agent-helper-1: error response to PolicyKit daemon: GDBus.Error:org.freedesktop.PolicyKit1.Error.Failed: No session for cookie
==== AUTHENTICATION FAILED ===
Error executing command as another user: Not authorized
This incident has been reported.
jjr@debian:~$
Je ne comprends pas bien. Pourquoi le pwd root ne marche pas?
Voila pour l’instant : je regarderai xdg-open ensuite
Merci