PDA

View Full Version : [all variants] .desktop file opens new firefox window



retro-starr
March 27th, 2013, 06:33 AM
I'm currently on Ubuntu 12.10 32-bit Desktop, exploring *.desktop files. I wanted to see if I could open a different Firefox profile from the same shortcut. This worked! The problem is when I try to extend it to open another window of that profile instead of opening another window of the default's. Below is just one of my many attempts. Google only shows how to start two parallel profiles (ie. -no-remote), but doesn't say how to define starting a new window/tab for just one of the profiles from the CLI (and I'm not sure how to phrase it for Google either). I know once I have the window open, I could simply tell that window to spawn a new one, but that wouldn't be a challenge!


[Desktop Entry]
Version=1.0
Name=Firefox Web Browser
Exec=firefox %u
Terminal=false
X-MultipleArgs=false
Type=Application
MimeType=text/html;
StartupNotify=true
Actions=NewWindow;Tor;NewTorWindow;

#Opens new window for default profile
[Desktop Action NewWindow]
Name=Open a New Window
Exec=firefox -new-window
OnlyShowIn=Unity;

[Desktop Action Tor]
Name=Start Tor
Exec=firefox -no-remote -P "Tor"
OnlyShowIn=Unity;

[Desktop Action NewTorWindow]
Name=Open a New Tor Window
Exec=firefox -new-window -P "Tor"
OnlyShowIn=Unity;

stinkeye
March 27th, 2013, 10:00 AM
Similar issue here...may find something that works.
http://ubuntuforums.org/showthread.php?t=2120730

retro-starr
March 28th, 2013, 03:58 PM
In the linked thread the gent was trying to get separate launchers to only store their respective pages. In mine, both are combined into one. Therefore I can't use the separate wmclass key (actions groups don't support wmclass).