From: Luis Felipe <sirgazil@zoho.com>
To: Daniel Hatton <dan.hatton@btinternet.com>,
Guix help list <help-guix@gnu.org>
Subject: Re: Gnome default web browser
Date: Sun, 1 Dec 2024 19:46:05 +0000 [thread overview]
Message-ID: <ae32db1a-bdfb-4613-838d-9ee79f665b32@zoho.com> (raw)
In-Reply-To: <6e419907-e944-4022-b60d-70215a367f6b@btinternet.com>
[-- Attachment #1.1.1: Type: text/plain, Size: 2249 bytes --]
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.
[-- Attachment #1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 2881 bytes --]
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 495 bytes --]
prev parent reply other threads:[~2024-12-01 19:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-20 13:15 Gnome default web browser Daniel Hatton
2024-11-20 14:18 ` Felix Lechner via
2024-11-20 18:07 ` Daniel Hatton
2024-12-01 19:19 ` Luis Felipe
2024-12-01 17:44 ` Daniel Hatton
2024-12-01 19:46 ` Luis Felipe [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ae32db1a-bdfb-4613-838d-9ee79f665b32@zoho.com \
--to=sirgazil@zoho.com \
--cc=dan.hatton@btinternet.com \
--cc=help-guix@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.