gmusicbrowser Forum

Main board => Questions => Topic started by: aboettger on April 22, 2014, 11:18:06

Title: keyboard shortcuts
Post by: aboettger on April 22, 2014, 11:18:06
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)"
Title: Re: keyboard shortcuts
Post by: aboettger on April 26, 2014, 09:51:23
This works for me:

Call system command with arguments
gmb_call_picard "%f"

gmb_call_picard
#!/bin/bash -
picard "$(dirname "$1")"
Title: Re: keyboard shortcuts
Post by: aboettger on April 26, 2014, 09:57:08
And an other example:

Call system command with arguments
gmb_call_easytag "%f"

gmb_call_easytag
#!/bin/bash -
easytag "$(dirname "$1")"
Title: Re: keyboard shortcuts
Post by: Quentin Sculo on April 27, 2014, 20:48:33
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.
Title: Re: keyboard shortcuts
Post by: aboettger on April 27, 2014, 21:04:33
The call by "bash-c "shell_command"" also works only when I start gmusicbrowser from the terminal.