alexmurray / emacs-snap

GNU Emacs in a snap
https://snapcraft.io/emacs
71 stars 13 forks source link

Opening url in snap? #62

Closed shamiv closed 11 months ago

shamiv commented 12 months ago

I see that others have been facing similar issues, but the solutions haven't worked for me yet: how do I make sure that urls that I open in the emacs snap open in Firefox?

alexmurray commented 12 months ago

Hi

I'd be happy to try and help but I need some more details - can you provide some more details of your system / emacs configuration? In particular, what OS are you running and what desktop environment? Is firefox configured as the default application for web browsing? Have you customised any of the browse-url related variables in emacs?

Also where are URLs currently being opened when you click on them in emacs?

More specifically, what does the following command output for you?

xdg-settings get default-web-browser

and what is the value of browse-url-browser-function in emacs?

shamiv commented 12 months ago

Sorry, of course.

At this point urls do not open at all. So also not in a new window of Firefox or anything.

alexmurray commented 12 months ago

Hmm so there is nothing that jumps out to me from the above that seems in indicate any problem - out of interest, what happens if you run:

gtk-launch $(xdg-settings get default-web-browser)

Is firefox launched then?

alexmurray commented 11 months ago

@shamiv have you had a chance to follow up on this? Can you please try the suggestion I posted above and let me know what happens.

shamiv commented 11 months ago

Hi @alexmurray sorry for not getting back. I have moved to a completely different set-up (from Spacemacs to Vanilla Emacs) and everything has changed. Also I'm not using the snap anymore (I built Emacs 30). Everything seems to be working now.

If at some point someone else ends up struggling with this I can see if I can replicate the problem, but for now I would say let's leave it?

(But thanks for taking this up!)

alexmurray commented 11 months ago

Thanks for the update, I'll close this issue for now then.

hansbogert commented 8 months ago

I'm hitting this.

Ubuntu 22.10 Spacemacs snap emacs 29.x Output of xdg-settings get default-web-browser is firefox.desktop

browse-url-browser-function
  User option: Function to display the current buffer in a WWW
               browser.
  Value: browse-url-firefox

@alexmurray can this be reopened?