Has anyone developed a good solution for wrapping a webapp as a desktop app on nixos? I have issues with nativefier, etc. And using the shortcuts in chrome have oddities with multiple logins, etc…
Thanks for the suggestions!
Has anyone developed a good solution for wrapping a webapp as a desktop app on nixos? I have issues with nativefier, etc. And using the shortcuts in chrome have oddities with multiple logins, etc…
Thanks for the suggestions!
I got really annoyed at the discord desktop app and its lack of wayland/nvidia support so I wrote a module to make firefox “apps” even though it doesn’t support ssb: dotfiles/firefox-webapp.nix at 7ce77190696375aab3543f7365d298729a548df5 · TLATER/dotfiles · GitHub
It’s worked quite well for me, no real issues because it’s literally just browser profiles with some fluff. And as a bonus, no chrome, and no bloat from running dozens of subtly different browsers.
There’s also https://ferdium.org/ if you’re ok with them all sharing one window.
Has anyone developed a good solution for wrapping a webapp as a desktop app on nixos?
What’s the use-case here? Isn’t it a lot easier to just run firefox with the multi-account-container addon?
A few things:
Faster alt-tab access with a visual indicator (icon). I have a billion tabs open, but a few of them are tools I am referencing all day long. Plus FF does not work with the sites I need to access - so I do not use FF.
Are you sure that’s not just the usual user-agent string matches? Full incompatibilities are rather uncommon, it comes down to essentially just a few codecs that are occasionally used for RTC stuff.
The most high-profile one I’m aware of is Microsoft teams, but even they recently started supporting firefox.
Google haven’t managed to completely delete web standards just yet ;p
No, it’s browser support. For example, I use voice dictation for work in Google Docs. Chrome only. Zoom works better and has more options (use web for transcription on notes), etc.
I love FF, but it just doesn’t work for the services I need.
For anyone that comes back to this, I ended up doing this with Chrome (pretty sure it would work for Chromium).
I create a desktop file like this:
[Desktop Entry]
Type=Application
Name=Nixos Discourse
Comment=Launch Nixos Discourse
Icon=/home/dustin/.local/share/icons/hicolor/48x48/apps/nix.png
Exec=google-chrome-stable --app="https://discourse.nixos.org/" %U
Terminal=false
Then via home-manager, I places the files:
home.file."nix-discourse.desktop" = {
source = ./desktop-files/nix-discourse.desktop;
target = ".local/share/applications/nix-discourse.desktop";
};
home.file."nix.png" = {
source = ./icons/nix.png;
target = ".local/share/icons/hicolor/48x48/apps/nix.png";
};
It works great for what I wanted. And all the apps are now declared in Nix!