Closed strogdon closed 3 years ago
Looks like a bad file association. Something in your setup has associated html files with emacs, which is not completely stupid since those are usually editable.
I thought maybe xdg-open
was misbehaving, but not sure if the notebook calls it.
I recommend inspection with xdg-mime
from xdg-utils
https://wiki.archlinux.org/title/Xdg-utils, I think xdg-open has to be involved somehow but it may not be in sage's code but the jupyter code.
Actually it could be via dev-python/click a real deep dependency of dev-python/notebook.
OK, the issue
$ xdg-mime query default text/html
emacs.desktop
This should be google-chrome.desktop
. I don't mess around with xdg-*
so I'm not sure what set this.
$ xdg-mime default google-chrome.desktop text/html
fixes things. This must be done as a normal user. I'm not sure where it is stored.
I didn't see your comment relative to dev-python/click. Would that affect a normal user?
The arch web page has useful indication as to where it is supposed to be stored and even how to get debug info about it.
The stuff about click
is just a way to open stuff across OSes. It is not a big deal but that's one of the point where xdg-open
is called. It more than affects normal users, it is probably necessary.
Tangentially related to #646. I usually don't use the notebook but tried to do so seeing #646. On one machine
works as expected and a browser window is automatically opened. However, on another machine I get
A browser window is not opened. Instead the contents of
file:///home/steven/.local/share/jupyter/runtime/nbserver-17329-open.html
are opened in an emacs editor window. The suggested instructions do work but not automatically. So something is not set correctly. But what?