[SOLVED] Desktop Entry help with Firefox

ViciousTribble

New Member
Joined
Dec 13, 2021
Messages
2
Reaction score
0
Credits
25
Hello,

Noob Alert. Just joined hoping someone can help with creating a Desktop Entry to launch a new Firefox instance with multiple tabs. The -new-window part is easy but I can't find anything about multiple tabs.

If I do something like "Exec=firefox %U -new-window url1 url2"
The new window opens with only url1. Url2 opens but in a preexisting window.

I have tried inserting spaces , : ; - etc. in between. I have tried "-new-tab" and quoting the urls and using "%u" vs "%U" Most give the same result or open the home page or do nothing at all.

I really don't want to setup a Desktop Entry to launch a different profile to accomplish this task. Any help will be most appreciated.

Also if there is a more novice friendly tutorial / site than:
that would be great to know.

Thanks in advance.
 
Last edited:


Thanks to ocratato over at fedoraforum who had the simple solution of omitting the %u or %U and including a "-new-tab -url" for the first url (I hadn't included it before the second url) as well as any other urls. It just won't work with out it being present.
Example:
Code:
[Desktop Entry]
Version=1.0
Name=MyFox
Comment=Do what you need it to
Exec=firefox -new-window -new-tab -url https://www.linux.org -new-tab -url http://fedoraforum.org
Type=Application

Thanks for looking.
 
Last edited:
Thank you for sharing, glad you got it sorted. :)

Chris Turner
wizardfromoz
 


Latest posts

Top