[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Gnome default web browser
From: |
Luis Felipe |
Subject: |
Re: Gnome default web browser |
Date: |
Sun, 1 Dec 2024 19:46:05 +0000 |
User-agent: |
Icedove Daily |
On 1/12/24 17:44, Daniel Hatton wrote:
On 20/11/2024 14:18, Felix Lechner wrote:
I think you may want to modify the *.desktop file (or install your own).
You mean $HOME/.guix-profile/share/applications/icecat.desktop ?
That's a symlink to a symlink to something in /gnu/store on which I
don't have write permission. Is it safe to delete the symlink and
make my own, editable, copy of the target file in its place?
I'm not Felix, but, as far as I know, there's no user-friendly way in
GNOME to indicate commands like "icecat --profileManager %u" as a
default application. However, I tried the following procedure in Guix
System and it worked:
1. Add a custom application (a .desktop file) to your home directory.
For example to ~/.local/share/applications/gatonival.desktop
2. Add your new application to the list of default applications in
~/.config/mimeapps.list
(https://help.gnome.org/admin/system-admin-guide/stable/mime-types-application-user.html.en)
3. Select GatoNival as your default web browser in GNOME Settings
The gatonival.desktop file in (1) contained the following:
#+begin_example
[Desktop Entry]
Version=1.0
Name=GatoNival
Comment=Browse the World Wide Web
GenericName=Web Browser
Keywords=Internet;WWW;Browser;Web;Explorer
Exec=icecat --profileManager %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=icecat
Categories=GNOME;GTK;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;application/xml;application/rss+xml;application/rdf+xml;image/gif;image/jpeg;image/png;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;x-scheme-handler/chrome;video/webm;application/x-xpinstall;
StartupNotify=true
StartupWMClass=Icecat
Actions=new-window;new-private-window;
[Desktop Action new-window]
Name=Open a New Window
Exec=icecat -new-window
[Desktop Action new-private-window]
Name=Open a New Private Window
Exec=icecat -private-window
#+end_example
In my case, ~/.config/mimeapps.list already existed. I replaced all
occurrences of "icecat.desktop" with "gatonival.desktop".
I don't use Guix home yet, but I imagine those two files could be
managed with it (?).
Hope that helps.
OpenPGP_0x0AB0D067012F08C3.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature