Open lordkekz opened 3 months ago
Thank you for your contribution! I marked this issue as stale due to inactivity. Please be considerate of people watching this issue and receiving notifications before commenting 'I have this issue too'. We welcome additional information that will help resolve this issue. Please read the relevant sections below before commenting.
* If this is resolved, please consider closing it so that the maintainers know not to focus on this. * If this might still be an issue, but you are not interested in promoting its resolution, please consider closing it while encouraging others to take over and reopen an issue if they care enough. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
* If you are also experiencing this issue, please add details of your situation to help with the debugging process. * If you know how to solve the issue, please consider submitting a Pull Request that addresses this issue.
Don't be afraid to manually close an issue, even if it holds valuable information. Closed issues stay in the system for people to search, read, cross-reference, or even reopen – nothing is lost! Closing obsolete issues is an important way to help maintainers focus their time and effort.
Goal
I'm using multiple Firefox profiles and want to easily start them from my application launcher. This is possible by creating separate
.desktop
files which launch a specific Firefox profile. I believe such an option would be useful, because it is likely that you'd want such an entry and it takes away the need for users to define all the options of the desktop entry.Suggestion
I suggest extending the
firefox.nix
module to allow for configuration on a per-profile basis, like so:which would generate a desktop entry using the
xdg-desktop-entries.nix
module:Open Questions
desktopEntry
ordesktopFile
?desktopEntry.enabled
default tofalse
or to!profile.isDefault
? I personally like to get desktop entries for any non-default profile, but it would change default behavior and people might be surprised.wm_class
(X11) andapp-id
(Wayland)? These could theoretically allow windows of different profiles to appear as separate apps in the taskbar. While Firefox has appropriate CLI options, it didn't work very well on my Plasma 5 system (X11 mostly worked, on Wayland it would suddenly show all Firefox instances belonging to one of the profile). I think this is DE/Compositor-related though, so the option might be appreciated by someone else.Implementation
I have already implemented this option in my personal dotfiles (option declaration, config definition, usage) and could send a PR with appropriate changes if you want. This is my first time writing any Nix modules/options, so it might not be the most optimal way to do it, but it works :)
Module Maintainers @rycee @kira-bruneau