I've a question of principle concerning to the ~/.config/xfce4/desktop/menu.xml .
Is it possible to run more than one command under cmd like
cmd="mount | grep -q value;result=$?; if [ $result == "xxx" ]; then do this; else do that; fi"
I try it, but it didn't work. In the shell prompt it act perfectly.
Thanks a lot!!!
You could presumably put all of that into a bash script and then just call the bash script.
But why isn't it possible to use the whole in the "menu.xml" ???
It's sort of weird.
Logical operators like & or | are only supported by the shells. You could do a
sh -c "mount | grep -q value; ..."
This could work