Re: Using JS to write to file under /sys

2012-07-30 Thread Alessandro Crismani
Il 29/07/2012 15:37, Иво Георгиев ha scritto: /sys is a special filesystem, and it seems Gio has some trouble with it. Keep in mind, writing into a file in /sys might give back an "invalid argument" error if you're trying to set something in an incorrect way. Anyway, I can think of two solutions:

Re: Using JS to write to file under /sys

2012-07-29 Thread Иво Георгиев
2012/7/28 Alessandro Crismani : > Il 27/07/2012 01:04, Alessandro Crismani ha scritto: > >> but I get an error that sounds like: >> >> root at alessandro-sammy in /data/Documenti/Linux/SammySettings >> # LC_ALL=C gjs SammySettings.js >> JS ERROR: !!! Exception was: Error: Error invoking >> G

Re: Using JS to write to file under /sys

2012-07-27 Thread Alessandro Crismani
Il 27/07/2012 01:04, Alessandro Crismani ha scritto: but I get an error that sounds like: root at alessandro-sammy in /data/Documenti/Linux/SammySettings # LC_ALL=C gjs SammySettings.js JS ERROR: !!! Exception was: Error: Error invoking GLib.file_set_contents: Failed to create file '/sys/

Using JS to write to file under /sys

2012-07-26 Thread Alessandro Crismani
Hi there, I do not know if this list is the right ML for this question, but I do not know where exactly it should go. Suggestions are welcomed if I am out of scope. I am trying to write a GJS program (which at some point I might turn into a Gnome Shell extension) that modifies files under /s