Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

option proposal: programs.defaultBrowser = "${pkgs.firefox}/bin/firefox"; #43733

Open
coretemp opened this issue Jul 18, 2018 · 3 comments
Open
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos

Comments

@coretemp
Copy link
Contributor

Issue description

It should be possible to define a default system browser (Debian has sensible-browser for that). This setting can then be used by other modules.

Example interface:

 programs.defaultBrowser = "${pkgs.firefox}/bin/firefox"; # or perhaps just plain "firefox" or both.

It depends on the use case when "firefox" is better or "${pkgs.firefox}/bin/firefox". Perhaps we should just have both options.

@jtojnar
Copy link
Contributor

jtojnar commented Jul 18, 2018

The standard solution for default browser is associating x-scheme-handler/http. Perhaps we need a NixOS module for MIME apps spec.

Actually, what GNOME Control Center does, it finds applications that support the http handler and associate the selected application with all the MIME types it lists in the desktop file. We would probably want something more granular.

@coretemp
Copy link
Contributor Author

Since the use case in this case was for Eclipse, I think we should do something which Eclipse supports. Standards are great, but if the application of interest doesn't support it, it doesn't seem to solve anything.

You could argue that someone should open a bug in Eclipse (and I would agree). However, having such an option would still be useful for the large amount of software which doesn't support such standards.

I have not checked whether Eclipse supports this particular standard, but I expect it does not.

@stale
Copy link

stale bot commented Jun 4, 2020

Thank you for your contributions.

This has been automatically marked as stale because it has had no activity for 180 days.

If this is still important to you, we ask that you leave a comment below. Your comment can be as simple as "still important to me". This lets people see that at least one person still cares about this. Someone will have to do this at most twice a year if there is no other activity.

Here are suggestions that might help resolve this more quickly:

  1. Search for maintainers and people that previously touched the related code and @ mention them in a comment.
  2. Ask on the NixOS Discourse.
  3. Ask on the #nixos channel on irc.freenode.net.

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md 6.topic: nixos
Projects
None yet
Development

No branches or pull requests

3 participants