Hi guys,
I hope this is the right place to post, I'm working on a shell
extension, and need help with a few points to finish it up.
The most pressing concern, before I can consider the extension usable,
is when saving data to a file.
I have used GLib.file_get_contents() to get the contents of a
Hello Sam:
I remembered seeing something similar to your issue in the
gnome-shell-list. I think the following links might be
helpful to you.
https://bugzilla.gnome.org/show_bug.cgi?id=680730
https://mail.gnome.org/archives/gnome-shell-list/2012-July/msg00143.html
In the bug report the followi
Hello Sam:
I ran this code in an extension and it works. data.txt is UTF-8.
let [success, data] = GLib.file_get_contents('/home/bogwan/data.txt');
let byteData = imports.byteArray.fromString(data.toString(), "UTF-8");
GLib.file_set_contents('/home/bogwan/data2.txt', byteData,
byteData.length);
Hi again,
Thanks to Norman, my extension is now usable, and pending review. But,
there are still some things to be improved.
My next question, is it possible to disconnect a signal without any ID?
For my extension to work perfectly, I need to disconnect a signal that
is created in ViewSelector,
In GNOME 3.4 there was a .disconnectAll() method -
Main.overview._viewSelector.disconnectAll()
I'm not sure if it exists in 3.6. Also, this really does disconnect all
signals, including ones that you might want to listen to and ones that
other extensions might be listening to.
good luck!
On 27