Add $DBUS variable for exec
I'm writing a shell script that is invoked with the exec
command in zathura which opens a PDF or EPub (by asking the user with a GUI file selection dialog). It seems like zathura can be remotely controlled with D-Bus, but there doesn't appear to be a way to pass in the dbus name to the shell script (nor could I make one from the predictable format, as $PPID
is 1).