Comando com trabalhos notify-send e rhythmbox-client, mas quando eu atribuo um atalho de teclado para ele o rhythmbox-client não inicia

3

Estou tentando ativar o seguinte atalho:

notify-send -i rhythmbox "RhythmBox Is Playing" "$(rhythmbox-client --print-playing)"

Funciona bem Se eu executá-lo a partir da linha de comando, mas quando eu o defino como um atalho de teclado, apenas o texto é impresso e o programa ( rhythmbox-client ) não é executado.

O que estou fazendo de errado?

    
por Chud37 08.05.2018 / 13:10

1 resposta

0

Tente usar os caminhos completos

encontre seus caminhos:

$ which rhythmbox
/usr/bin/rhythmbox

$which rhythmbox-client
/usr/bin/rhythmbox-client

Em seguida, sub os resultados em vez de apenas os comandos

notify-send -i /usr/bin/rhythmbox "RhythmBox Is Playing" "$(/usr/bin/rhythmbox-client --print-playing)"

    
por Jeff 08.05.2018 / 14:07