Questions tagged [gnome-shell-extensions]

The Gnome Shell (Gnome 3) offers JavaScript bindings to customize and extend the shell behavior.

Extension-catalog

Developing

The JavaScript bindings are based on the Gjs project (see ), which has more documentation.

222 questions
1
vote
1 answer

Include secondary sources in GJS

I am developing a Gnome extension. As such, I have an extension.js where all my code resides. Now I have some other code I want to use, which lives in a file foo.js and sadly does not yet use strict mode. How can I load this foo.js?
abergmeier
  • 13,224
  • 13
  • 64
  • 120
1
vote
3 answers

Unable to locate GNOME Shell settings or version. Make sure it is installed and running

I tryed install gnome extesions. But i always recive the message 'Unable to locate GNOME Shell settings or version. Make sure it is installed and running.'. I installed the gnome-shell-extensions and chrome-gnome-shell but no working. I restart the…
Thiago
  • 273
  • 1
  • 6
  • 24
1
vote
1 answer

GLib run command with root privileges

I'm writing a very simple gnome extension for personal use (in javascript). To run console commands I use GLib.spawn_command_line_sync("command"); GNOME Shell version 3.36.2 WHAT I NEED I need to run only one command but with root privileges, how…
Tommimon
  • 131
  • 1
  • 12
1
vote
2 answers

Call a function from another gnome extension

My question is simple, is that possible to call a function declared in another gnome extension from my own gnome extension ?
taharqa
  • 1,112
  • 1
  • 13
  • 19
1
vote
1 answer

How to get redirected url after oauth call

I am learning to use APIs, so I am making a Gnome Shell Extension consisting of buttons in the top bar in Ubuntu to control Spotify's player (next, play, pause, previous) by doing calls to Spotify's API. Until now, I was getting my token manually,…
BenjaminD
  • 31
  • 1
1
vote
1 answer

How to run Gnome-Shell under Docker?

How do you run Gnome-Shell from inside Docker? I'm trying to create a simple continuous build process for a Gnome Shell Extension, just to simulate and test installation. In order to make it easier to test the build for various flavors of Linux, I'd…
Cerin
  • 60,957
  • 96
  • 316
  • 522
1
vote
2 answers

Connecting a 'clicked' signal to the indicator

I wrote a PanelMenu.Button-derived class for shell 3.36 by following the tutorial at: https://wiki.gnome.org/Projects/GnomeShell/Extensions/Writing Everything works (after a few 3.36-related tweaks I had to do) but now I would like to have a single…
Andrej Prsa
  • 551
  • 3
  • 14
1
vote
1 answer

Multiple arguments in Gio.Subprocess

I'm developing my first gnome-shell-extension currently. In the extension, I want to execute a simple shell command and use the output afterwards, for which I use Gio.Subprocess like it is used in this wiki:…
raujonas
  • 117
  • 8
1
vote
1 answer

Running an asynchronous function in a GNOME extension

I want to run a loop inside a GNOME extension. after a DBus service method call, but gnome shell freezes I have learned that extensions run in the GLib's Main Loop and I should use GTask API, but I cannot find a way to use it, nor a clear example. I…
1
vote
1 answer

Clutter: Perspective, Skew, and Matrices

Is there a way to change the clutter perspective for a given container or widget? The clutter perspective controls how all the clutter actors on the screen are displayed when rotated, translated, scaled, etc. What I would really like to do is to…
mknap
  • 11
  • 4
1
vote
1 answer

Unable to use GNOME shell extension after installing chrome-gnome-shell

I followed the tutorial here to install all the necessary packages to use gnome extensions on Firefox, Ubuntu 18.04. However, when I opened the website, it returned an error Although GNOME Shell integration extension is running, native host…
BigD
  • 571
  • 7
  • 24
1
vote
1 answer

Adding sound(s) on mouse click

I'm creating a helper GNOME extension for my theme. The helper extension was meant to be used to add some sounds when I click a button, however, I can't find a solution (and an extension) that shows how to add the sounds and how to call…
1
vote
1 answer

Running multiple xdtool commands from activateResult

I'm creating a gnome shell extension and implementing the search provider. In the activateResult method I want to run some code like GLib.spawn_command_line_sync('xdotool windowactivate ' + window_id); GLib.spawn_command_line_sync('xdotool key…
1
vote
1 answer

Ubuntu 18.04 immediately logs out with a specific user

My Ubuntu 18.04 doesn't allow me to log in with GNOME. Immediately after logging in, it seems that a crash occurs and I'm back at the log in page. If I try with a different user it works. I found this in /var/log/syslog Dec 10 10:13:38 y-server…
a.dibacco
  • 490
  • 3
  • 13
1
vote
1 answer

how to remove an actor from a St.ScrollView and add other, by pressing a button [javascript] [Gjs]

I have the following code: in a St.ScrollView I have added a St.BoxLayout . The St.Scrollview is added in a menu.box.Now I want to create a St.Button, to remove the St.BoxLayout from St.ScrollView and add another St.BoxLayout there.I have tried to…
cgiannakidis
  • 81
  • 1
  • 6