Gnome extension programming to disable the left edge drag gesture to show the application.

I apologize to everyone if this is the wrong group.

Wed like using Fedora 23 in kiosk mode, but there is a recently added feature to remove the left margin that has been added to the Gnome shell ( https://github.com/GNOME/gnome-shell)that cannot be disabled easily.

https://github.com/GNOME/gnome-shell/commit/9c4ffc4bf353fe9c64368f3e194e38b0e8f61311

As far as I can tell, our options are:

1) Write an extension to fix this - My favorite

We spoke to the original author who recommended removing the gesture via an extension.

We tried to write an extension, but we can't figure out how to iterate over the list of gestures in global.stage to remove it.

(These gestures were added with global.stage.add_action(gesture)

and can be removed with global.stage.remove_action(gesture)

.)

Since then, the author has stopped responding to our emails :(

Any advice on this would be great!

2) Check the version that was included, comment out the code, recompile and install on our machines

Sounds great! This way, we can fix other errors as well. View the README file

https://github.com/GNOME/gnome-shell/blob/master/README

It says:

Learn more about the GNOME Shell, including instructions on how to

to create a GNOME shell from source and how to interact with the project,

See https://wiki.gnome.org/Projects/GnomeShell

So, we've followed him to this page:

https://wiki.gnome.org/Newcomers/BuildGnome

And that tells us to check JHBuild, but we can't figure out where the gnome shell code is checked on the machine when we use JHBuild.

If it's an easier way to do / install, that would be great. We probably just followed the wrong recommended link.

3) Roll back to an earlier version of the gnome shell

But that brings us back to the problem of checking the gnome shell and make / install, as shown in # 2.

4) Switch to KDE

We could try KDE instead of Gnome, but we've already tested a lot in Gnome and could be a major hurdle.

5) Build a Fedora 22 box to get back to Gnome 3.16 - my least favorite

Its a huge effort and we cannot be sure what has changed and what will break. Our kiosk software might not even work on Fedora 22. But its hail-mars support the plan

0


source to share


1 answer


I work with SciComputing and, with the help of Florian MΓΌllner, we realized that an extension with the following Javascript code would get rid of the gestures that closed our kiosk window:



/*
 * Disable all of the unwanted touchscreen gestures.
 */
function enable() {

global.stage.get_actions().forEach(a => a.enabled = false);

}

/*
 * Re-enable the touchscreen gestures.
 */
function disable() {

    global.stage.get_actions().forEach(a => a.enabled = true);
}

      

+2


source







All Articles