« 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] | ||
== | == Lanceurs (fichiers .desktop) == | ||
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. | |||
ex avec Whatsapp: | |||
<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] | ||
Version=1.0 | |||
Type=Application | Type=Application | ||
Name=WhatsApp Web | |||
Name= | Exec=/snap/bin/chromium "--profile-directory=Profile 3" --ignore-profile-directory-if-not-exists https://web.whatsapp.com/ | ||
Icon=/home/geo/snap/chromium/common/chromium/Profile 3/Web Shortcut Icons/shortcut-d40211678368f1445f8bc21775a3259d.png | |||
Exec=/ | URL=https://web.whatsapp.com/ | ||
Comment=Ouvrir https://web.whatsapp.com/ dans un nouvel onglet dans Chromium. | |||
</syntaxhighlight> | |||
<syntaxhighlight lang="bash" line copy> | |||
</ | chmod +x ~/.local/share/applications/whatsapp-web.desktop | ||
< | </syntaxhighlight> | ||
'''WhatsApp Web''' se trouve maintenant dans le menu des applications d'Ubuntu. | |||
</ | |||
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) == | ||