SwayNotificationCenter
SwayNotificationCenter copied to clipboard
[Bug] buttons-grid relative paths to scripts to execute.
Describe the bug
Passing a relative Path to buttons-grid
results in Run_Script Error: Failed to execute child process “~/.dots/scripts/blepower.sh” (No such file or directory)
passing an absolute Path works.
To Reproduce
"actions": [
{
"label": "",
"command": "~/.dots/scripts/blepower.sh"
},
{
"label": "",
"command": "/home/martin/.dots/scripts/blepower.sh"
}
]
}
The first example won't work the second does.
Expected behavior Relative paths should be possible
Desktop (please complete the following information):
- OS: NixOS 24.05
You need something like this: "command": "bash -c '~/path/to/the/script.sh'"
Or a patch like this: https://github.com/ErikReider/SwayNotificationCenter/pull/435/commits/8b8f7db793857823cde2be7b97c3af434de61ecf