-
Notifications
You must be signed in to change notification settings - Fork 285
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
Remove Debian dependency libappindicator3-1 #170
Conversation
Without this dependency older systems had incorrect click behaviour. Where left clicking would open a context menu (same as right clicking) but left clicking the tray icon should show/hide the window instead. |
Ok, then I can just move it to a |
@t3chguy let me know if this works better for you. |
This might fix #16174 |
Yes that's exactly the point, sorry I should have looked for a corresponding issue. To be clear, I cannot reproduce the issue @t3chguy is mentioning. Since it's not such a big issue, IMHO it would be fair to apply the fix I'm suggesting and see if the old issue is indeed still here on systems without libappindicator (provided you, like me, cannot reproduce it right now). If you're interested in technical details, I wrote a bit there: signalapp/Signal-Desktop#5031 (comment) But in any case I think the point remains that having the app installable with a tiny bug (if at all, again I don't have it) with the currently suggested procedure is better than having it fail / suggesting to download a .deb manually and use |
libappindicator has been deprecated by Debian[0] and will not be shipped from Debian Bullseye on. [0]: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895037
I don't think recommends is entirely appropriate. The purpose of recommends is to indicate a dependency that in all but the most unusual installations should be present. Though appindicator support is useful, the application functions perfectly fine without it and only serves to provide a relatively minor enhancement in desktop environments. None of the functionality of Element is absent when appindicator support isn't present on the system. That fits much better with the definition of suggests:
|
@daenney if it were just me we'd remove it altogether, for the reasons you mentioned, and the fact that I cannot reproduce the bug mentioned (so IME the dependency is useless). But putting it as a In practice, it makes little difference anyway, and it's bound to be removed completely eventually. |
This won't work as intended, with it being in recommends. As of Debian Lucid, recommends are installed by default by apt. So if Looking at the package it seems odd that Debian has it in Buster and Sid, but that it's missing from Bullseye:
This would probably warrant reaching out to the Debian project instead. The library being present in Buster and Sid but missing in Bullseye is rather strange. If it is available in Sid, it should naturally roll down to Bullseye/testing. |
With libappindicator being in oldlibs, it might just be that they'd like to switch to https://packages.debian.org/bullseye/libayatana-appindicator3-1 |
You're 100% sure about this? I think it will at least depend on the frontend, for instance I couldn't really find doc about what would /should happen exactly in case of missing But let's assume you're right anyway, would it then be fine to just have this dependency as a My only goal here is to have element installable on Debian Bullseye without any friction. Anything that makes it possible is fine by me. |
Positive, says so in the apt source code: https://github.com/Debian/apt/blob/master/apt-pkg/init.cc#L132. It's possible that aptitude ignores that or prompts anyway, but it's unlikely people would uncheck recommends. First time around it would most likely still result in an installation error.
In both cases they'll be skipped, unless explicitly asked to be included. Since apt defaults to including recommends, it will try to find that package, fail to do so and abort the installation as it won't be able to resolve a package you're asking to be installed.
Moving to suggests should be fine, since apt never defaults to installing suggests by default. Semantically I also think that's more correct. |
Based on https://www.debian.org/doc/manuals/aptitude/ch02s05s05.en.html it also seems Aptitude will mark recommended packages for installation based on |
To clarify, I created a repo with an empty package to play with Using this, I can say that it:
This is using Am I still missing something? This is on Debian Bullseye. I assume that the result will be similar on Ubuntu, but you're welcome to reproduce this if you have the time. This means that it would be fine to leave in |
Strange, I don't recall apt be OK with references to non-existing packages in recommends. But I can indeed reproduce your behaviour on a fresh testing install. |
libappindicator has been deprecated by Debian (0) and will not be shipped from
Debian Bullseye on.
This library is supposed to enable the system tray icon to work, but it actually works fine without it on the two systems I've been able to test (xfce / i3). At the same time, this dependency prevents users from installing element-desktop on Debian Bullseye.
0: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=895037