Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extension does not detect Touchegg installed on NixOS #21

Closed
maydayv7 opened this issue Sep 12, 2021 · 8 comments
Closed

Extension does not detect Touchegg installed on NixOS #21

maydayv7 opened this issue Sep 12, 2021 · 8 comments

Comments

@maydayv7
Copy link

maydayv7 commented Sep 12, 2021

Describe the bug

When the X11 Gestures extension is installed from either the Extensions website or the nixpkg and session is restarted, the "Touchegg is not installed" message appears. Even though the notification is displayed, the gestures work properly, but the default Touchegg gestures are not inhibited. For example, a 3 finger swipe-up results in both switching to the activities overview as well as maximizing the currently focused application. This may be because the path for detecting Touchegg is hardcoded, but in NixOS installed packages installed have different paths (in /nix/store) as compared to conventional behaviour of other distros.

Expected behaviour

The extension must detect the Touchegg package that is installed on the system, inhibit the default gestures, and work properly

Logs

No logs found with the command journalctl -f -o cat /nix/store/knybxcvc53l8phjfvlirxzwqv4p6xg2z-gnome-shell-40.1/bin/gnome-shell

Your environment

  • Extension version: 8
  • Touchégg version: 2.0.11
    (Touchegg is installed manually via using this Nix Overlay, as the nixpkg for it is outdated)
  • Operating System: NixOS 21.05
    (This is the config for my installed system, it is completely reproducible)
  • GNOME Shell Version: 40.1
  • Display Server: X11
@JoseExposito
Copy link
Owner

I believe this is a known issue by the NixOS devs, see #19.

This needs to be reported to the packagers of the extension, hopefully they can help you.

@maydayv7
Copy link
Author

maydayv7 commented Sep 13, 2021

Actually, no, that was because the touchegg nixpkg provided in the repos was outdated (v1.1.1), but I am running the latest version v2.0.11, that I manually installed using an overlay (link to it is given in the first comment)

@JoseExposito
Copy link
Owner

Yes, but this extension checks if Touchégg is installed by looking at the config file in /usr. It also needs to know where is your personal config (in home) to reserve the gestures to GNOME and don't run 2 actions.

Those two paths need to be patched by the extension packager. I believe that the easiest way to fix this issue is to open a bug report in the NixOS bug tracker. If you share the link I can try to clarify what's needed.

@maydayv7
Copy link
Author

Okay, there is a relevant PR for patching all GNOME Extensions installed via nixpkgs.

@maydayv7
Copy link
Author

I have opened an issue

@ThatOtherAndrew
Copy link

@maydayv7 Hello, sorry for necroposting but your nixos-config repo is no longer accessible. Could you please give me a quick Overlays-for-Dummies-esque snippet to chuck in to fix this issue for myself? I'm assuming that if I update Touchégg then the shell extension will work as well.

@maydayv7
Copy link
Author

maydayv7 commented Mar 18, 2024

This issue has already been fixed a long time ago, and the required version of Touchegg is already in the repos (the current 23.11 release includes Touchegg 2.0.17 and extension 22), but I've updated the links in my original post

@ThatOtherAndrew
Copy link

Right, I see. I've still been having issues with Touchégg being detected on NixOS - I'll do a bit more digging and see if I can figure this out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants