Hi there, In Brave/Chromium, you can create a shortcut for a website (essentially a web wrapper), by going to menu > more tools > create shortcut. I like this over my current method as it takes care of the wmclass.
I was considering using this method for the first time to create my wrappers and then porting it to nix code.
This method creates a number of manifest files, desktop files, icons, etc, based on what appears to be a random string.
I wanted to see if anyone has by chance seen some sort of module someone may have already created, before I run down this rabbit hole.
For anyone who lands here. I wrote a simple nix function which can then be used to create/install a "web app. Tested with Brave and chromium.
Now, it is slightly different (from my original question) in that it does not create an “app” in Brave, etc. (IE, you will not see it under brave://apps).
It should work with any browser that supports these cli flags:
you need to get the WM_CLASS to have proper alt tab icons. Can use looking glass on Gnome. If on Sway, you can look at my fish shell function which has the commands to get the appid/wmclass.
Here is how I defined a “github app”. Here is how I defined an app for this discourse forum.