unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Gnome default web browser
@ 2024-11-20 13:15 Daniel Hatton
  2024-11-20 14:18 ` Felix Lechner via
  0 siblings, 1 reply; 6+ messages in thread
From: Daniel Hatton @ 2024-11-20 13:15 UTC (permalink / raw)
  To: Guix help list


[-- Attachment #1.1: Type: text/plain, Size: 314 bytes --]


I hope non-Guix-specific questions aren't against the rules here - sorry 
if they are.

I have the default web browser in Gnome's default apps set to IceCat. 
How do I get Gnome to pass a command-line option to IceCat, please? 
(Specifically, I want --profileManager)

-- 

Kind regards,

Dan Hatton

[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnome default web browser
  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 17:44   ` Daniel Hatton
  0 siblings, 2 replies; 6+ messages in thread
From: Felix Lechner via @ 2024-11-20 14:18 UTC (permalink / raw)
  To: Daniel Hatton; +Cc: Guix help list

Hi Daniel,

On Wed, Nov 20 2024, Daniel Hatton wrote:

> I hope non-Guix-specific questions aren't against the rules

All questions are game but a forum of Gnome users will usually provide
better advice.  Some topics intersect with the way Guix installs
software.

> How do I get Gnome to pass a command-line option to IceCat, please?

I think you may want to modify the *.desktop file (or install your own).

Kind regards
Felix


^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnome default web browser
  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
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Hatton @ 2024-11-20 18:07 UTC (permalink / raw)
  To: Guix help list


[-- Attachment #1.1: Type: text/plain, Size: 727 bytes --]

On 20/11/2024 14:18, Felix Lechner wrote:

> I think you may want to modify the *.desktop file (or install your own).

I think it just became a Guix-specific question, because I have a whole 
bunch of different 
$HOME/.local/share/applications/userapp-IceCat-*.desktop files; it looks 
like the guix package manager is generating a new one every time there's 
a version upgrade of IceCat.  So, there's a now an issue of how I make 
sure any changes I make to the desktop file survive future version upgrades.

(I've also discovered I have a $HOME/.config/autostart/icecat.desktop 
which doesn't point to the latest installed version of the executable, 
which is going to be a whole other bunch of headaches.)



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnome default web browser
  2024-11-20 14:18 ` Felix Lechner via
  2024-11-20 18:07   ` Daniel Hatton
@ 2024-12-01 17:44   ` Daniel Hatton
  2024-12-01 19:46     ` Luis Felipe
  1 sibling, 1 reply; 6+ messages in thread
From: Daniel Hatton @ 2024-12-01 17:44 UTC (permalink / raw)
  To: Guix help list


[-- Attachment #1.1: Type: text/plain, Size: 396 bytes --]

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?



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 840 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnome default web browser
  2024-11-20 18:07   ` Daniel Hatton
@ 2024-12-01 19:19     ` Luis Felipe
  0 siblings, 0 replies; 6+ messages in thread
From: Luis Felipe @ 2024-12-01 19:19 UTC (permalink / raw)
  To: Daniel Hatton, Guix help list


[-- Attachment #1.1.1: Type: text/plain, Size: 1124 bytes --]

Hi Daniel,

On 20/11/24 18:07, 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).
>
> I think it just became a Guix-specific question, because I have a 
> whole bunch of different 
> $HOME/.local/share/applications/userapp-IceCat-*.desktop files; it 
> looks like the guix package manager is generating a new one every time 
> there's a version upgrade of IceCat.  So, there's a now an issue of 
> how I make sure any changes I make to the desktop file survive future 
> version upgrades.

For what it's worth, I use Guix System with GNOME, and I also use 
IceCat, but I don't have any desktop file related to IceCat in that 
location. There were some desktop files starting with "userapp-" but all 
were obsolete (programs I no longer use). I don't know why they were 
there nor what created them. But some of them did point to binaries in 
the /gnu/store and had a comment in my system language that indicates 
that they were autogenerated (e.g. «Comment=Definición personalizada 
para Evolution»).



[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Gnome default web browser
  2024-12-01 17:44   ` Daniel Hatton
@ 2024-12-01 19:46     ` Luis Felipe
  0 siblings, 0 replies; 6+ messages in thread
From: Luis Felipe @ 2024-12-01 19:46 UTC (permalink / raw)
  To: Daniel Hatton, Guix help list


[-- 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 --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-12-01 19:46 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).