However, commands like pgrep ardour6, ps -C ardour6 and pidof ardour6 returns nothing, even if Ardour is running (same goes for Cadence). The same commands used with ‘firefox’ or ‘evolution’ instead returns various info as expected. All programs show up in Task Manager as well, while pgrep xfce4-taskmanager also returns nothing
What could be the reason for this?
EDIT: commands didn’t work becuse I didn’t pay attention to case sensitivity.
Marking this as solved and continuing work on the script in the original thread.
Didn’t really get the script started yet as I stumbled just determining if Ardour is running…
It 's supposed to look something like
# check if Ardour is running
pgrep ardour >/dev/null
# check if presentation mode is off
# switch on Presentation Mode
xfconf-query -c xfce4-power-manager -p /xfce4-power-manager/presentation-mode -T
…but like I said, running pgrep ardour from terminal returns nothing, while e.g. pgrep firefo returns the pid of firefox (even when misspelling like here).