My Gnome Shell extension has a folder 'icons' and there is an icon file called 'MyIcon.png' inside. I want to take it as a parameter to an St.Icon object.
let icon = new St.Icon({ /* I need what to code here*/ });
Thanks for any help.
Selcuk.
I'm trying to develop an Gnome Shell extension using GJS(Gnome Javascript), however, I came across the Lang library (I think it is a library, if not correct me). But I can't find any resources about it on the web.
In the code it looks something like…
Gnome Shell has great shortcuts, however, I don't find a way to call them programmingly
Assume that I want to use a GJS script to start Google Chrome, move it to workspace 1, and maximize it, then start Emacs, move it to workspace 2, and maximize…
I am currently trying to refactor an existing gnome-shell extension's codebase. Part of that is introducing unit tests as it seems rather neglectful to not use tests in 2016.
After some tinkering I managed to setup a working node-phantomjs-qunit…
So I'm making a Gnome Shell extension. And I want to be able to run some command with a pipe. (The command is actually "xrandr --query | awk 'something'", but that is off topic)
So, what I have done so far is
GLib.spawn_async_with_pipes(null,
…
How would I port the OAuth 2.0 implict grant flow from a browser environment if I wanted to access the REST API beneath it through a GNOME shell extension ?
How would I redirect the user to the OAuth 2.0 decision endpoint through a login screen?
If…
I am writing a simple extension to open browser by clicking the extension button. I would like to know if there is a function which can execute passed shell command as argument. Also, it'd be really helpful if anyone can suggest a good simple…
I'd like to support multiple GNOME versions with my shell extension. How can I detect the GNOME version it's running on and branch the code appropriately?
I wrote this accessibility extension:
https://extensions.gnome.org/extension/975/keyboard-modifiers-status/
https://github.com/sneetsher/Keyboard-Modifiers-Status
Which works as supposed in Gnome Shell v3.14 & v3.16 but not in v3.10. It shows the…
I'm working on a Gnome Shell Extensions and I can't find any documentation on how to copy some string into the clipboard for the user.
I searched the Gnome extensions git but without any success.
Thank you for your help! :)
I am developing a GTK application in GJS and like to reuse parts of the GTK
code inside a Gnome Shell extension. However, I did not find a way to add a
Gtk.Widget to the menu of my Gnome Shell panel icon.
I tried to use GtkClutter.Actor from…
I am writing the preference view a GNOME shell extension and an facing issues when using the imports.lang function to write the application in an object oriented fashion.
const Gtk = imports.gi.Gtk
const Lang = imports.lang
Gtk.init(null)
const…
I'm writing new Extension code and want to log to a file for debugging purposes.
I've tried using the print() function to write to ~/.cache/gdm/session.log as explained here: http://codeisland.org/2013/making-gnome-shell-extensions/
This does not…
I've been battling the horrendous Gnome API documentation and came up with this extension:
const St = imports.gi.St;
const Main = imports.ui.main;
const Tweener = imports.ui.tweener;
const GLib = imports.gi.GLib;
let label;
function init() {
…
I used to disable gnome-shell's hot corner feature with the No Topleft Hot Corner extension. Upgrading to gnome-shell 40 has it deprecated. Gnome-tweaks claims it's able to disable it as well, but activating this "disable the hot-corner" option…