On my LG G3, when i add a "shortcut" widget to my launcher (and select the script from ~/.shortcuts/ directory) it works fine until next reboot, after which trying to start it just pops up a "toast" message at the bottom of the screen saying: "This shortcut has become invalid - remove and add again" It doesn't seem to be a permission issue, because running 'setenforce 0' and immediately trying one of these "invalid" shortcuts produces the same error.
Works fine on my galaxy s3.
Both phones are running Lineage OS 14.1 (android 7.1.2)
Tested with nova launcher and trebuchet, same result.