bash-shortcuts
bash-shortcuts copied to clipboard
non-app shortcut problems
@Tormak9970 I have created a shortcut with the following command
echo -e $(echo $(printf 'f%.0s' {1..12}; printf "$(echo aa:bb:cc:dd:ee:ff | sed 's/://g')%.0s" {1..16}) | sed -e 's/../\\x&/g') | socat - UDP-DATAGRAM:255.255.255.255:9,broadcast
This sends a Magic Packet (Wake-on-LAN) to a target machine (you have to replace the MAC address in the echo command). In Desktop mode, this command works without any problem and my target machine wakes from sleep.
In the plugin, as a shortcut, it does not work. The shortcut displays a success notification but it has no effect, the machine does not wake from sleep.
I checked if the double quotes inside the command are correctly escaped with \
in the settings json file and they are. I also checked journalctl -u plugin_loader
but found nothing extraordinary for bash shortcuts.