Hi Ray, It is comforting to know that there is always someone more knowledgeable than myself to help out.
Thanks for filing the bug, I have too little background on the internals to be able to file the bug-report as detailed as you did. Also thanks for the work around, you saved my day and my application. *takes hat off* If I understand the bug report well, the reason the bug is there is because of the facility that the workaround uses? Can you show me where there are instructions to setup gdb on a single machine for gnome-shell and the libraries used? -- (o_ //\ Regards, Groeten, V_/_ Bas Burger. On Fri, 27 Jul 2012 23:18:39 -0400 Ray Strode <halfl...@gmail.com> wrote: > On Fri, Jul 27, 2012 at 11:01 PM, Ray Strode <halfl...@gmail.com> > wrote: > > Hey, > > > > On Fri, Jul 27, 2012 at 9:03 PM, Yaa101 <yaa...@xs4all.nl> wrote: > >> There is definitely a problem in either the javascript string > >> binding with keyfile.to_data() or the one where > >> GLib.file_set_contents() writes to the file. > > I had a quick look at your test case this now. I modified it to > > sleep 5 seconds, then attached with GDB and found there is a > > problem in gjs. > > > >> I hope somebody will file this as a bug as I am not able to, > >> besides, I will be too busy porting my application to python. > Also, this change to your test case: > > const > ByteArray = imports.byteArray; > > // log to > stdout and write new file as gedit-out.desktop > let [data, > datalen] = keyfile.to_data(); > let array = > ByteArray.fromString(data); > log(data); > log(datalen); > let success > = GLib.file_set_contents(here + '/gedit-out.desktop', array, -1); > log(success); > > seems to work around the bug (in case you'd rather not rewrite in > python) > > --Ray _______________________________________________ gnome-shell-list mailing list gnome-shell-list@gnome.org https://mail.gnome.org/mailman/listinfo/gnome-shell-list