-
-
Notifications
You must be signed in to change notification settings - Fork 31
Support GNOME/Wayland #74
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
base: main
Are you sure you want to change the base?
Conversation
However, move_frame just doesn't seem to work
This seems to work correctly, but move_to_monitor can nt be called at that point because it breaks the position. More testing is required on a multi-monitor system.
|
Well this is awesome. Thank you! I'll try to review this soon. As for the dbus service, yes this is a know issue, but I haven't had time to look into it. But yes, I think the service does start too soon. I have been able to get around this on one of my systems where I have seen this by just launching the service with a delay. |
|
I am running into some issues with this: The extension is installed and enabled: I am running this on Wayland gnone-shell version 48.5. I don't know much about Gnome extensions, but I read you can use d-feet to see the running dbus processes. I don't see the hints extension there, but I do see it in looking glass under "Extensions" and there I also see: So I don't think there is anything wrong with the extension itself. Any ideas? This is clean install of Gnome on Manjaro Linux, maybe there is a dependency I am missing? What distro did you test this with? |
|
It looks very much like the extension isn't actually running, so I don't know why gnome-extensions isn't showing that. I haven't got a PC handy with an earlier version of GNOME than 49 to test with, so that was the only version I listed in metadata.json. I've just added 48 to the list, and I'm fairly confident that will work, because I was able to fix all the extensions I use when GNOME upgraded to 49 simply by adding 49 to their metadata files, so there seem to have been far fewer dissruptive changes to the API this time. It would probably be worth adding 46 and 47 as well, for Ubuntu LTS and Debian Trixie respectively. I think that stands a good chance of working with no other changes anyway, but I'll see if it's possible to enable an extension on a live USB. |
|
Regarding the systemd service, I know there's a target for XDG autostart, but I'm not sure how to use it. I just found something that might help. |
|
I did manage to load the extension on Ubuntu 24.04 without any error messages. I haven't tested its functionality, but I'm pretty sure the parts of the API I'm using have been stable for quite a long time. |
|
Good work, thank you so much. But it only works in GNOME apps; it doesn't work in others. Do you know what might be causing that? |
ISTR I had to edit |
|
Hi, @realh this is real good work! It seems to be working fine with the supported apps, however, I am having some issues to make it work for all the apps on my system. Most gnome/system apps seem to work fine with hints and the overlay appears but almost none of the user apps like Firefox, Brave seem to allow the overlay to appear. I wonder if it is just my system! This warning appears when I run hints, I also added the environment variables and tried enabling System Info: |
|
I have had it working with Firefox, but it doesn't seem to do a good job of identifying buttons etc. Try setting |
|
@realh I was wrong with my assumption of hints working with user flatpak apps. It doesn't work across the board even when I supplied the socket to hints which was not accessible for some apps. My second guess is now that the flatpak is isolated with its own namespace and PID hints can't access it. @AlfredoSequeida maybe you can reason it better. |
I've got Hints to work with GNOME/Wayland by writing a gnome-shell extension to provide a dbus service which hints uses in its new WindowManager implementation and as an alternative to wlr_layer_shell.
The extension is in
[email protected]. You are welcome to change the part after the @, but remember to also editmetadata.jsonto match. The directory can be copied or symlinked into~/.local/share/gnome-shell/extensions/and enabled withgnome-extensions enable [email protected]or with the extensions applet. It might be necessary to restart the desktop.I couldn't get the systemd service for hintsd to work properly. It can't connect to DISPLAY, but I don't know whether that's because it tries to start too early or because systemd's environment is independent from the desktop session. As an alternative I wrote
hintsd.desktopwhich can be installed in~/.config/autostart.