-
Notifications
You must be signed in to change notification settings - Fork 149
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
Tray icon alternative on GNOME, etc. #12
Comments
Per https://bugs.launchpad.net/variety/+bug/1634752, have you tried installing the indicator plugin @ https://extensions.gnome.org/extension/615/appindicator-support/? |
That extension is broken in last Gnome Shell version: ubuntu/gnome-shell-extension-appindicator#127 |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I'm also facing this issue on Archlinux X11: Wayland: |
This comment has been minimized.
This comment has been minimized.
That's easier said than done - it's not our fault that GNOME decided to deprecate tray icons while barely considering the viewpoint of other developers. Sure they're recommending "specialised integration APIs" but we are neither a media player nor a cloud sync solution. The entire struggle to support just about every requested desktop while they change incompatibly is already frustrating enough. I can consider making an alternate UI but comments like that aren't helpful. |
Ok, I admit I haven't read much about what the options are, and am a bit behind currently with the whole DE updates, X vs Wayland story, etc. after 2 years with OSX on my work PC and no updates to my home PC. But let's try to collectively list all options we have: 1. Keep the AppIndicator approach.Pros:
Cons:
2. Implement the controls directly in Variety's main UI, i.e. classic application approachPros:
Cons:
3. Small control window that stays below all windows (similar to how Variety Slideshow's desktop window mode works)Pros:
Cons:
4. Desktop menuCan we plug into it? Is it GNOME specific, what about other DEs? Cons:
5. Desktop widgetI think there is no standard DE-agnostic approach for desktop widgets, right? 6. Keep appindicator for Unity and other DEs, use whatever GNOME provides natively for tray menusPros:
Cons:
7. (Based off 3, kind of goes into utopia territory again). We actually use variety-slideshow's approach to draw the wallpaper as a fullscreen window on all monitors.Pros:
Cons:
Other options? After writing all this, I'm kind of inclined to do some more experimentation with 3) - if we can get a "below-all-windows" interactive, undecorated, transparent window to stay on the desktop without getting minimized, and this works on all DEs, this opens lots of possibilities. A lot of the relevant work is already done in Variety Slideshow. |
I did some experimentation and it looks like we're not completely screwed yet... If you pin Variety to the dash and right click it, the .desktop actions show up and work quite nicely. (I expect that Ubuntu GNOME behaves similarly)
I would opt for a mini-window with all the standard controls (Pause, Next, Previous), plus a button to open up the larger preferences window.
I don't think this is an option for latest GNOME 3 anymore. And no, I don't think it's standardized either.
I think option 3 is sort of what I had in mind when I was referring to "widget", though I could be massively wrong with my terminology. (I personally don't really use the desktop much anymore)
I don't think GNOME provides such an API. They want people to use stuff like MPRIS and cloud storage APIs, but we're not really either of those. (Our controls might be media player-like, but that's really too much of a hack for my tastes)
Whaaaat?! -1 from me for reinventing multiple wheels :P
I agree that this is the best approach. |
You underestimate how many people prefer their desktop completely clean off of any distractions. I'm myself one actually :). If I'm going to be looking at a pretty picture, I want to see it in its full glory without obstructions. Maybe even a single icon would bug me. I'd certainly not want a fully-decorated window hanging constantly around. Hence what I see is a super-minimal mostly transparent widget, perhaps just a small single rounded icon (but prev/next/pause icons could also work) that can be dragged to any corner, handles mouse wheel for next/previous, and can be clicked to either 1. show a bigger list of options like those we provide now or 2. show the main window. BTW, right now we have quite a lot of options in the menu that are not present in the preferences, and would be kind of out of place there, unless we design a new tab along the lines of "Current wallpaper". So option 2) is not really trivial. Re: "multiple wheels", I liked that phrase :) Well, it is quite exact, I agree, and I wouldn't start in that direction, but it does open lots of possibilities that are not supported well by the current desktop-drawing system. |
It's even possible, and maybe better, to use a completely transparent "action zone" (e.g. the rightmost 100px on every monitor) that gets highlighted only when the Preferences window is open (to show where it is), potentially its size and position can be configured, and handles wheel-scroll and right-click for a menu. So it's essentially providing a large "canvas" for interactivity without obstructing the picture at all. But this all needs experimenting on different DEs before we can commit to it. |
Yeah, it shows that I'm not a UX designer...
Either style sounds good to me (one icon or media player like). Would it also work to have it be freely movable if you hold down the widget and drag it around?
I think the Preferences window is fine as is, and that the widget should match the .desktop entry menu (which already includes a link to Preferences)
I feel like this has more of a learning curve than it needs to (i.e. elements that look like they disappear but still respond to mouse controls). A small translucent widget should suit fine IMO |
Tested briefly today and 3) is an option at least on 16.04 with Unity, I can intercept the window iconify event and bring it back, which handles the "Show Desktop" case well. I've committed the changes to variety-slideshow (when run with But thinking about the problem, it does add quite a lot of complexity, and when I think more about it, I still prefer a classical tray icon and menu over a similar home-baked solution. Tested again today on 18.04 on a very low-resolution screen, and while not perfect, the menu is completely functional and usable on an out-of-box setup, with the most important options being easily accessible just as on Unity. And it does work both under X11 and Wayland for me. There were issues with the thumb window positioning under Wayland, but that's a different problem. I also notice that on non-Unity DEs we add two items at the top of the menu - Next and Previous, plus a separator, that are not necessary on GNOME 3, as the wheel scrolling works OK there. We can remove those, this will compact the menu a bit. Can we test and summarize a bit more systematically what are the conditions that cause issues and how unavoidable they are? E.g. as far as I see, all is green under a fresh 18.04 install. What about Debian? |
…here the indicator is unavailable An experimental workaround for #12. It looks like rootless menus work consistently on Xorg (appearing where the mouse clicks), but not on Wayland.
I started experimenting with a way to force open the menu from the .desktop entry in the I think I'll try the floating widget idea next. edit: see the |
Hi all, I use gnome-shell with topIcons extension, and i can see the icon when i start the X session but not the Wayland session. Regards |
@tglman (and everyone else) Topicons and its descendants like topicons plus aren't very well maintained. The fundamental issue, as well noted above, is that GNOME have deprecated the whole concept of a tray icon - isn't part of their user interface vocabulary any more. So varying extensions to display the "tray icons" are doomed. I have the extension that works on Ubuntu 18.04, KStatusNotifierItem/AppIndicator Support. It works for some of my apps but not for Variety. I'm using the workaround - right-click on the dash icon to get the menu - on Arch with GNOME 3.32 and I'm fine with that. |
Hi, for the GNOME sys-tray icons someone could be interested to this tread: https://mail.gnome.org/archives/desktop-devel-list/2019-March/msg00020.html and maybe add some use cases there. Regards |
Arch Linux
GNOME Shell 3.28.1
variety 0.6.8
The tray icon isn't shown.
The text was updated successfully, but these errors were encountered: