harshadgavali / gnome-x11-gesture-daemon

MIT License
68 stars 4 forks source link

Gesture improvements doesn't seem to work on x11 debian testing #40

Closed TeoColuccio closed 1 year ago

TeoColuccio commented 2 years ago

I'm on debian testing, so gnome 43.1 and I've installed gesture-improvements via gnome-extensions. Testing it on wayland everything works fine. The problem is that due to some gnome graphical glitches, I'm currently forced to stay on x11 and here the gestures simply don't work. As if the extension is disabled… To start, I installed gnome-x11-gesture-daemon as per the guide and made sure my user is in the input group, but nothing changed. If it helps, by disabling the extension, this is the journalctl -f -o cat /usr/bin/gnome-shell log:

Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800004
Window manager warning: Buggy client sent a _NET_ACTIVE_WINDOW message with a timestamp of 0 for 0x800020
Can't update stage views actor <unnamed>[<MetaWindowGroup>:0x56482d31a510] is on because it needs an allocation.
Can't update stage views actor <unnamed>[<MetaWindowActorX11>:0x7f750800ffa0] is on because it needs an allocation.
Can't update stage views actor <unnamed>[<MetaSurfaceActorX11>:0x56482ed2b0c0] is on because it needs an allocation.
Could not create transient scope for PID 9956: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 9956 does not exist.
[DEBUG]:: in function subscribe at gestures/src/utils/dbus.js:131:13
    "starting dbus service 'gesture_improvements_gesture_daemon.service' via spawn"
Could not create transient scope for PID 9997: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 9997 does not exist.
Could not create transient scope for PID 9998: GDBus.Error:org.freedesktop.DBus.Error.UnixProcessIdUnknown: Process with ID 9998 does not exist.

whereas the journalctl --user -f -o cat -u gesture_improvements_gesture_daemon.service command, simply returns nothing.

harshadgavali commented 2 years ago

Hey @TeoColuccio , You pasted wrong content as log. Also please share output of systemctl --user status gesture_improvements_gesture_daemon.service to get status of service.

TeoColuccio commented 2 years ago

Also please share output of systemctl --user status gesture_improvements_gesture_daemon.service to get status of service.

Ok. It's strange, but the output is (with both the extension enabled and disabled):

Unit gesture_improvements_gesture_daemon.service could not be found.
harshadgavali commented 2 years ago

@TeoColuccio that means you don't have service installed. I'm guessing you installed it with sudo.

First uninstall the service using sudo again (in extracted folder of zip file)

sudo sh ./uninstall.sh

Then install without using sudo Copying instruction from README of service

# Without sudo/root
sh install.sh # Reboot is needed after this

# ** OR ** to restart daemon, without rebooting
sh install.sh --restart
TeoColuccio commented 2 years ago

Ok, i tried, but i didn't solve, now the log is:

○ gesture_improvements_gesture_daemon.service - gesture improvements Gesture Daemon
     Loaded: loaded (/home/teo/.config/systemd/user/gesture_improvements_gesture_daemon.service; static)
     Active: inactive (dead)

nov 28 15:06:45 MsiPulse systemd[1728]: gesture_improvements_gesture_daemon.service: Main process exited, code=exited, status=203/EXEC
nov 28 15:06:45 MsiPulse systemd[1728]: gesture_improvements_gesture_daemon.service: Failed with result 'exit-code'.
nov 28 15:06:46 MsiPulse systemd[1728]: gesture_improvements_gesture_daemon.service: Scheduled restart job, restart counter is at 25.
nov 28 15:06:46 MsiPulse systemd[1728]: Stopped gesture improvements Gesture Daemon.
nov 28 15:06:47 MsiPulse systemd[1728]: Started gesture improvements Gesture Daemon.
nov 28 15:06:47 MsiPulse systemd[14149]: gesture_improvements_gesture_daemon.service: Failed to locate executable /root/.local/bin/gesture_improvements_gesture_daemon: Perm>
nov 28 15:06:47 MsiPulse systemd[14149]: gesture_improvements_gesture_daemon.service: Failed at step EXEC spawning /root/.local/bin/gesture_improvements_gesture_daemon: Per>
nov 28 15:06:47 MsiPulse systemd[1728]: gesture_improvements_gesture_daemon.service: Main process exited, code=exited, status=203/EXEC
nov 28 15:06:47 MsiPulse systemd[1728]: gesture_improvements_gesture_daemon.service: Failed with result 'exit-code'.
nov 28 15:06:47 MsiPulse systemd[1728]: Stopped gesture improvements Gesture Daemon.
harshadgavali commented 2 years ago

Okay I think I see the issue, when you installed with sudo first time, it modified file in extracted folder.

Please do this.

  1. Uninstall service (without sudo)
  2. Delete extracted folder
  3. Extract zip file again (download again you don't have zipfile)
  4. Install with --restart flag (without sudo)
  5. Toggle extension
TeoColuccio commented 1 year ago

Please do this.

  1. Uninstall service (without sudo)
  2. Delete extracted folder
  3. Extract zip file again (download again you don't have zipfile)
  4. Install with --restart flag (without sudo)
  5. Toggle extension

Thank you very much, that was exactly the problem. Following your steps I now have the fully functional extension. So I close the issue and thank you again.