Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: xdg-open is used in Call extra data window to open open the atta…
…chments
- Loading branch information
Showing
2 changed files
with
7 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ccac764
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/usr/bin/xdg-open script has nasty way to drop parts of URL after hastag # because it is a script comment prefix. I think it does not matter in this case when question is plain filenames, but for help files it is fatal and it is good to keep in mind.
And another question: Does xdg-open exist in all linux distributions? Is it always in /usr/bin ?
xdg-open makes living simple for user (no settings) but can we trust the existence?
Just thoughts...
ccac764
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is the reason why I added the param to the quotes. It should pass the param as it is.
I hope it exists in all distributions. As far as I know it's prefered way to open default applications assigned to specifix extensions like music, pdf, html etc.