You are not logged in.

#1 2022-05-14 22:16:31

angelsen
Member
Registered: 2022-05-14
Posts: 1

Issues with Incron and gsconnect cli

Hi! I have would like incron to run a command where it will send newly created screenshots to my device

/home/user/Pictures/Screenshots	IN_CREATE	touch /$@/test.txt		//this works and creates a file test.txt
/home/user/Pictures/Screenshots	IN_CREATE	/usr/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/./daemon.js --share-file=/$@/$#		//does not work
/usr/share/gnome-shell/extensions/gsconnect@andyholmes.github.io/service/./daemon.js --share-file=<filepath|URI>		//does work when run as user, does not work when run as su

I suspect there might be an issue with incron running commands as root?

Any ideas on how I could proceed?

Offline

Board footer

Powered by FluxBB