question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Authenticating and xdg-open

See original GitHub issue

Due to a bug in xdg-open a registered protocol scheme like safe-alphachars01234 won’t be opened correctly due to the digits in there. https://bugs.freedesktop.org/show_bug.cgi?id=104973

Also, because the desktop entry files containing quoted values in the Exec key — like Exec="/usr/bin/safe-browser" %uxdg-open won’t be able to open the browser binary. (https://askubuntu.com/q/189822)

Also see this topic on SAFE Dev Forum about users encountering the issue: https://forum.safedev.org/t/app-webfetch-is-not-a-function-with-safe-browser-built-from-source/2301

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
b-zeecommented, Aug 20, 2019

As the issue is really with xdg-utils I wanted to mention that a fix has been committed a while ago (March 2019) by XDG: https://gitlab.freedesktop.org/xdg/xdg-utils/commit/bfcefa162b1dcd6d62e193019969ff2f5ff331cf

It’s now about waiting for them to release a new version of their packages containing the fix.


Edit: besides the other part of the issue where quotes in the .desktop file prevent xdg-open from correctly opening the browser.

And after some more looking around I found the second part of our issue has already been reported to XDG: https://gitlab.freedesktop.org/xdg/xdg-utils/issues/151

Unfortunately I also see that the project has no activity for the past four months and no release since May 2018.

And after even more digging I see that electron-builder has ‘fixed’ this since their v21.0.1 release (2019 June 24). Which I gladly see is on that version already on the dev branch. However, building and packaging the dev version does still produce a quoted path…

0reactions
joshuefcommented, Oct 4, 2019

with auth moving out of the browser I’m closing this

Read more comments on GitHub >

github_iconTop Results From Across the Web

Login fails if xdg-open is installed but fails to open a web ...
Issue When running the stripe cli in an environment such as a Github or Visual Studio Codespace, the following can happen to cause...
Read more >
trying to authenticate google sheets in R on Linux Ubuntu
"No method available for opening" - trying to authenticate google sheets in R on ... Press Esc/Ctrl + C to abort /usr/bin/xdg-open: 870: ......
Read more >
xdg-open error with JDBC connection using externalbrower ...
This article has the steps needed to grant a JVM permission to open a browser window for external browser authentication with the Snowflake...
Read more >
Command line open command doesn't exist, xdg-open doesn't ...
Trying to use the command line parameters to open a session, I've found 2 problems.1) The open command doesn't exist. Doing some research,...
Read more >
Recommend xdg-utils package for authentication via web ...
`xdg-utils` contains the program `xdg-open` which openconnect can use to launch an external browser authentication for SSO.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found