How to properly add a Requires for "I want a desktop" (or maybe "I want a KDE Plasma desktop")?
Hi all, I found tail-tray, a KDE Plasma tray application for tailscale. I have a first rough package (that I need to test), but was asking myself how to properly add a dependency on "a desktop environment. If I understood this properly, this tray app should be running fine on a KDE plasma desktop. Maybe also on other desktops, if everything follows the same "tray specification". No idea. But how to add that Requires? What should I depend on?
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_net...
Kind Regards Johannes
I would not add the whole environment as requires. Especially since very likely lxqt should be able to use this tray also. And pretty sure quite the few people would complain about installing kde just for a tray on lxqt (not sure how much they share) Kind regards Richard On October 30, 2024 9:33:02 AM UTC, Johannes Kastl <mail@johannes-kastl.de> wrote:
Hi all,
I found tail-tray, a KDE Plasma tray application for tailscale.
I have a first rough package (that I need to test), but was asking myself how to properly add a dependency on "a desktop environment.
If I understood this properly, this tray app should be running fine on a KDE plasma desktop. Maybe also on other desktops, if everything follows the same "tray specification". No idea.
But how to add that Requires? What should I depend on?
https://build.opensuse.org/package/show/home:ojkastl_buildservice:Branch_net...
Kind Regards Johannes
Hi Richard, On 30.10.24 11:00 Richard Rahl wrote: [fixed quoting]
But how to add that Requires? What should I depend on?
I would not add the whole environment as requires. Especially since very likely lxqt should be able to use this tray also.
And pretty sure quite the few people would complain about installing kde just for a tray on lxqt (not sure how much they share)
Yes, hence my question on how to add a Require for "I want a desktop" (which was not clear enough in the mail, only in the subject, sorry). It should pull in enough of the KDE/QT libraries and helpers and whatnot to run, even on a non-KDE desktop. Not sure if those are added automatically in the background or if I need to add anything. Kind Regards, Johannes
On 30/10/2024 12:12, Johannes Kastl wrote:
Hi Richard,
On 30.10.24 11:00 Richard Rahl wrote:
[fixed quoting]
But how to add that Requires? What should I depend on?
This should happen automatically. obviously sometimes bugs can happen, then you can circumvent that with adding it manually, or fixing it where the bug happens. To see what the package actually pulls in you can see it through the webgui with details on the rpm, or `rpm -q --requires *.rpm
I would not add the whole environment as requires. Especially since very likely lxqt should be able to use this tray also.
And pretty sure quite the few people would complain about installing kde just for a tray on lxqt (not sure how much they share)
Yes, hence my question on how to add a Require for "I want a desktop" (which was not clear enough in the mail, only in the subject, sorry).
It should pull in enough of the KDE/QT libraries and helpers and whatnot to run, even on a non-KDE desktop. Not sure if those are added automatically in the background or if I need to add anything.
Kind Regards, Johannes
On Mittwoch, 30. Oktober 2024 10:33:02 Mitteleuropäische Normalzeit Johannes Kastl wrote:
Hi all,
I found tail-tray, a KDE Plasma tray application for tailscale.
I have a first rough package (that I need to test), but was asking myself how to properly add a dependency on "a desktop environment.
I would not use a Requires here, but a Supplements on '(tailscale && (tray-a || panel-b || ...))'. The dependecies for QSystemTrayIcon can be found here: https://doc.qt.io/qt-6/qsystemtrayicon.html#details Generally, it would be nice if each desktop/tray implementing either XEmbed or the org.freedesktop.StatusNotifierHost DBus service had an appropriate generic Provides, but apparently there is none. Regards, Stefan -- Stefan Brüns / Bergstraße 21 / 52062 Aachen phone: +49 241 53809034 mobile: +49 151 50412019
On 30.10.24 16:37 Stefan Brüns wrote:
On Mittwoch, 30. Oktober 2024 10:33:02 Mitteleuropäische Normalzeit Johannes Kastl wrote:
Hi all,
I found tail-tray, a KDE Plasma tray application for tailscale.
I have a first rough package (that I need to test), but was asking myself how to properly add a dependency on "a desktop environment.
I would not use a Requires here, but a Supplements on '(tailscale && (tray-a || panel-b || ...))'.
That sounds like a good idea, thanks!
The dependecies for QSystemTrayIcon can be found here: https://doc.qt.io/qt-6/qsystemtrayicon.html#details
I'll have a look.
Generally, it would be nice if each desktop/tray implementing either XEmbed or the org.freedesktop.StatusNotifierHost DBus service had an appropriate generic Provides, but apparently there is none.
Meh. Kind Regards, Johannes
participants (3)
-
Johannes Kastl
-
Richard Rahl
-
Stefan Brüns