April 22, 2014, 11:18:06 Last Edit: April 26, 2014, 09:41:06 by aboettger
How can I pass the name of the folder to a program with a keyboard shortcut?

This version also does not work.
picard "$(dirname %f)"

This works for me:

Call system command with arguments
gmb_call_picard "%f"

gmb_call_picard
#!/bin/bash -
picard "$(dirname "$1")"

And an other example:

Call system command with arguments
gmb_call_easytag "%f"

gmb_call_easytag
#!/bin/bash -
easytag "$(dirname "$1")"

It's because the command is called directly, not through a shell, you can call the shell instead by using 'bash -c "command arguments"' though quoting gets messy real fast.
Maybe I could add a "run shell command" that runs the command through the shell.

The call by "bash-c "shell_command"" also works only when I start gmusicbrowser from the terminal.