New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Permission denied: 'xdg-settings' when executing 'jupyter notebook' from command line #85177
Comments
error was caused by the permission problem with 'xdg-settings'. I checked that Google Chrome is my default browser. I tried the following command by changing the c.NotebookApp.allow_root to True in the jupyter_notebook_config.py file, and it can successfully open jupyter notebook in the browser Safari: |
error was caused by the permission problem with 'xdg-settings'. I checked that Google Chrome is my default browser. I tried the following command by changing the c.NotebookApp.allow_root to True in the jupyter_notebook_config.py file, and it can successfully open jupyter notebook in the browser Safari: |
Can you give more information about your issue here. This part of the code was written like this on purpose as the comment says:
We have to be sure that there is a bug here before changing the code, that changing the code will definitely fix the issue and that it won't create others. |
yeah there is a bug as web browsers won't open when you launch them from python code please have a look at this issue posted on jupyternotebook github : jupyter/notebook#3746 It was posted on the wrong place as it was not an issue with Jupiter but an issue with python. |
I've commented on the attached PR. IMHO a correct fix is to catch and ignore PermissionError when calling xdg-settings (on all platforms). An xdg-settings executable that cannot be started due to permission problems is similar to that executable not being available at all. |
yeah I've updated the pr please review |
@ronaldoussoren The issue seems to be solved. We can close the issue. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: