« Ubuntu » : différence entre les versions

Ligne 62 : Ligne 62 :
  [https://help.ubuntu.com/stable/ubuntu-help/shell-notifications.html.fr notifications]
  [https://help.ubuntu.com/stable/ubuntu-help/shell-notifications.html.fr notifications]


== AppImage ==
== Lanceurs (fichiers .desktop) ==
Créer manuellement un lanceur, qu'on placera dans le répertoire caché <code>~/.local/share/applications/</code>, et qui apparaitra ainsi dans le menu des applications  Ubuntu. 
Sur les systèmes GNU-Linux comme Ubuntu, les lanceurs sont des fichiers donnant accès, à la manière d'un "raccourci", à un logiciel, à un fichier, ou à un dossier.
Pour créer ce lanceur, créer un fichier au format texte que vous appellerez <code>nom_du_programme.desktop</code>.<br />
 
Dans ce fichier, collez les commandes  suivantes (l'exemple ci-dessous est avec le programme Audacity, adaptez-le à vos besoins) :
ex avec Whatsapp:
<pre>
<syntaxhighlight lang="bash" line>
nano ~/.local/share/applications/whatsapp-web.desktop
</syntaxhighlight>
 
<syntaxhighlight lang="bash" line>
#!/usr/bin/env xdg-open
[Desktop Entry]
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
Type=Application
Categories=Audio;AudioVideo;
Name=WhatsApp Web
Name=Audacity
Exec=/snap/bin/chromium "--profile-directory=Profile 3" --ignore-profile-directory-if-not-exists https://web.whatsapp.com/
Comment=Editions de fichiers audio
Icon=/home/geo/snap/chromium/common/chromium/Profile 3/Web Shortcut Icons/shortcut-d40211678368f1445f8bc21775a3259d.png
Exec=/home/<votre_nom_utilisateur>/Documents/appimage/audacity-linux-3.1.3-x86_64.AppImage
URL=https://web.whatsapp.com/
Icon=audacity
Comment=Ouvrir https://web.whatsapp.com/ dans un nouvel onglet dans Chromium.
StartupNotify=false
</syntaxhighlight>
Terminal=false
 
Hidden=false
<syntaxhighlight lang="bash" line copy>
</pre>
chmod +x ~/.local/share/applications/whatsapp-web.desktop
<pre>
</syntaxhighlight>
Version ubuntu
 
lsb_release -a
'''WhatsApp Web''' se trouve maintenant dans le menu des applications d'Ubuntu.
</pre>
 
 
ex: Tor
<syntaxhighlight lang="bash" line>
[Desktop Entry]
Type=Application
Name=Tor Browser
GenericName=Web Browser
Comment=Tor Browser  is +1 for privacy and −1 for mass surveillance
Categories=Network;WebBrowser;Security;
Exec=sh -c '"/home/geo/tor-browser-linux-x86_64-13.0.14/tor-browser/Browser/start-tor-browser" --detach || ([ !  -x "/home/geo/tor-browser-linux-x86_64-13.0.14/tor-browser/Browser/start-tor-browser" ] && "$(dirname "$*")"/Browser/start-tor-browser --detach)' dummy %k
X-TorBrowser-ExecShell=./Browser/start-tor-browser --detach
Icon=/home/geo/tor-browser-linux-x86_64-13.0.14/tor-browser/Browser/browser/chrome/icons/default/default128.png
StartupWMClass=Tor Browser
</syntaxhighlight>


== autofs (auto.master) ==
== autofs (auto.master) ==