How to get a Desktop Icon for a site in App mode, or launch using SSB?!
I cannot find anyway in Firefox, or from searching how to create a desktop shortcut/link of a site I have added as an App after enabling ssb mode. Is it even possible?
I've spent quite a bit of time trying to re-create a userChrome.css file to simulate the App mode, however minimal success only. The best I could gets getting the site I want to launch with no tabs/address bar/title bar which is not desirable as it is missing the Title Bar of the website name, which also is useful for moving the window/app around my desktop. For trying to launch that, I am running it from command line using triggers for an alternate profile withe the customer userChrome.css
user@pop: firefox -P app -new-instance http://www.wolframalpha.com
Is there any way built in to create a desktop link to open a site I added as an app? If not is there any other method that I can use to launch the site, either in my default profile, or a specific profile with a custom userChrome.css file that would have a Titlebar window same as when I manually launch the site in app mode?
What I want to have, is a shortcut on my desktop to launch the window on the right of the attached screenshot without manually having to open Firefox -> Hamburger Menu -> Sites in App Mode -> <selecting site>
I'm using Ubuntu/PopOS 20 with latest version of Firefox Any help would be great. Thanks
所有回覆 (1)
I can't think of any built-in way to do what you are looking for. There are two different potential ways that come to mind.
You could have two profiles (a regular and title-only one). That sounds like the way that you are already doing it and it's likely the way that I'd recommend going about it. Just make sure that the app profile is not the default and when you open a new instance of Firefox, it should go to the default profile instead.
The slightly more complicated way (but potentially slightly better working) would making a browser add-on to handle that behaviour. You could have the shortcut open a dumby website. The browser add-on would listen for that dumby website to be loaded and open a new window with the correct website. If you give the new window a WindowType of panel
or popup
(I can't remember off the top of my head which one is the one that fits your requirements), it would be a new window with just the title bar.
That's a slightly more complicated route to go, but has some benefits to it (mainly because it doesn't play with userChrome.css, which is picky at times).
I actually what working briefly on something similar to that for a since abandoned side-project of mine not too long ago, but I never finished.