https://github.com/maoschanz/nautilus-open-with-menu
je ne l'ai pas traduite mais bon ça marche raisonnablement bien alors je le partage
je ne l'ai pas traduite mais bon ça marche raisonnablement bien alors je le partage
Ça marche très bien oui..!Roschan a écritça marche raisonnablement bien
#!/bin/bash
if (( $EUID == 0 )); then
echo "Checking if adequate folders exist..."
dir_pyt_ext="/usr/share/nautilus-python/extensions"
if [ ! -d "${dir_pyt_ext}" ]; then
mkdir -p "${dir_pyt_ext}"
fi
echo "Installing plugin files in ${dir_pyt_ext}"
cp open-with-menu.py "${dir_pyt_ext}/open-with-menu.py"
else
echo "Checking if adequate folders exist..."
dir_pyt_ext="$HOME/.local/share/nautilus-python/extensions/"
if [ ! -d "${dir_pyt_ext}" ]; then
mkdir -p "${dir_pyt_ext}"
fi
echo "Installing plugin files in ${dir_pyt_ext}"
cp open-with-menu.py "${dir_pyt_ext}/open-with-menu.py"
fi
exit 0
pour le python...Là je ne suis pas d'accord, définir l'application avec laquelle devrait s'ouvrir un type de fichier est une opération très différente de ce que fait ce codele menu devrait également être "Set open with"... ou "Définir ouvrir avec…"