Wie kann ich zwei verschiedene Profile von Firefox anzeigen, die unter zwei verschiedenen Symbolen in meinem Dashboard ausgeführt werden?
Ich habe zwei verschiedene .desktop-Dateien für meine beiden Firefox-Profile. Beide haben unterschiedliche Symbole und sind separat an meinen Bindestrich angeheftet. Wenn sie jedoch ausgeführt werden, werden beide unter dem Standardsymbol ausgeführt. Wie kann ich dies ändern, damit sie separat ausgeführt werden?
Standardprofildatei:
[Desktop Entry]all this seems to do is make them both launch Firefox with a default icon
Version=1.0
Name=Firefox Personal
Comment=Browse the World Wide Web
Exec=firefox %u
Terminal=false
Type=Application
Actions=new-window;new-private-window;
Icon=firefox
[Desktop Action new-window]
Name=Open a New Window
Exec=firefox -new-window
[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=firefox -private-window
Schulprofildatei:
[Desktop Entry]
Version=1.0
Name=Firefox School
Comment=Browse the World Wide Web
Exec=firefox -P school -no-remote
Terminal=false
Type=Application
Actions=new-window;new-private-window;
Icon=/home/callum/Pictures/firefox-school.png
[Desktop Action new-window]
Name=Open a New Window
Exec=firefox -P school -no-remote -new-window
[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=firefox -P school -no-remote -private-window
Hier ist ein Bild meiner beiden Starter von Firefox. Ich führe derzeit das Schulprofil aus, aber es zeigt, dass die Standardinstanz geöffnet ist:
Ich verwende Kubuntu 19.10 mit KDE Plasma 5.16.5
Vielen Dank!
BEARBEITEN: Verwenden von Klassen Ich habe die Desktop-Dateien aktualisiert, um Klassen gemäß dem Vorschlag von @vanadium zu verwenden, aber das zweite Profil startet nur eine andere Firefox-Instanz mit dem Standardsymbol.
Standardprofildatei:
[Desktop Entry]
Name=Firefox Personal
Comment=Browse the World Wide Web
Exec=firefox -P personal -no-remote --class personalProfile
Terminal=false
StartupNotify=true
Type=Application
Icon=firefox
StartupWMClass=personalProfile
Schulprofildatei:
[Desktop Entry]
Name=Firefox School
Comment=Browse the World Wide Web
Exec=firefox -P school -no-remote --class schoolProfile
Terminal=false
Type=Application
StartupNotify=true
Icon=/home/callum/Pictures/firefox-school.png
StartupWMClass=schoolProfile
EDIT 2: Ich habe es behoben! Ich habe die Desktop-Dateien in ~/.local/share/applications
und nicht in aktualisiertusr/share/applications
Antworten
Ich habe dies gelöst, indem ich den Desktop-Dateien Klassen hinzugefügt habe:
[Desktop Entry]
Name=Firefox School
Comment=Browse the World Wide Web
Exec=firefox -P school -no-remote --class schoolProfile
Terminal=false
Type=Application
StartupNotify=true
Icon=/home/callum/Pictures/firefox-school.png
StartupWMClass=schoolProfile
[Desktop Entry]
Name=Firefox Personal
Comment=Browse the World Wide Web
Exec=firefox -P personal -no-remote --class personalProfile
Terminal=false
StartupNotify=true
Type=Application
Icon=firefox
StartupWMClass=personalProfile
und dann die neuen Desktop-Dateien verschieben ~/.local/share/applications
und nicht nur die inusr/share/applications