Skip to content

Keyboard shortcut to open file manager of currently played media #14084

Closed Answered by lamyergeier
lamyergeier asked this question in Q&A
Discussion options

You must be logged in to vote

@ruihe774 I get the following error in terminal when I press the shortcut

/bin/bash: command substitution: line 1: syntax error near unexpected token `('
/bin/bash: command substitution: line 1: `dirname Don Giovanni - Commendatore Scene - EN Sub (Better Quality) [Ioc9shJa_lI].webm'
gio: No locations given

Usage:
  gio open LOCATION…

Open files with the default application that
is registered to handle files of this type.

Solution

I added quotation marks

ctrl+o run "/bin/bash" "-c" "gio open \"$(dirname \"${path}\")\""

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@lamyergeier
Comment options

Answer selected by kasper93
@lamyergeier
Comment options

@ruihe774
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants