Zren / plasma-applet-eventcalendar

https://store.kde.org/p/998901/
470 stars 93 forks source link

Dependency on plasma-nm is not mentioned in documentation #227

Closed MatthewForrester closed 3 years ago

MatthewForrester commented 3 years ago

I am using Ubuntu 20.04.2 LTS with KDE Plasma 5.18.5 and KDE Frameworks 5.68.0.

I installed Event Calendar for the first time following the very helpful instructions in the "Install via KDE'" section of the repo home page.

When I right-clicked on the new icon in my Panel, I got the following error message: Error loading QML file: file:///home/linmanfu/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/main.qml:25:2: Type NetworkMonitor unavailable file:///home/linmanfu/.local/share/plasma/plasmoids/org.kde.plasma.eventcalendar/contents/ui/NetworkMonitor.qml:2:1: module "org.kde.plasma.networkmanagement" is not installed

Some online searches suggested that this indicates that Event Calendar is dependent on the KDE Network Management package. In Ubuntu repos, this is the plasma-nm package. I installed this with apt and the problem corrected itself after a reboot.

Issue #212 confirms this analysis and indicates that you expected all distributions would have plasma-nm installed.

I did not have plasma-nm installed and a little background may help to understand why it may not be sensible to assume that it is present. The Ubuntu repos have two ways to install KDE Plasma. One is the kubuntu-desktop metapackage, which installs not only KDE Plasma but also the full KDE suite: Konversation, KMail, etc. As the same suggests, this is equivalent to Kubuntu and it includes plasma-nm. The other is the kde-plasma-desktop metapackage which only installs Plasma, the core KDE/Qt libraries, and a few core applications (Dolphin and Konqueror). It does not install plasma-nm. This is what I use. §

I had a glance at the situation for some other distros. I could only find the smaller plasma-desktop package in the Debian repos, so it is likely that other Debian-based distros will offer Plasma without plasma-nm. Arch does have it as a dependency for its plasma-desktop metapackage. I am not very familiar with the RPM world, but Fedora has an up-to-date plasma-nm package that is apparently not a dependency for its plasma-desktop package.

I think that this is primarily a documentation issue. The installation instructions should state that KDE Network Manager is a dependency requirement and that this package is called plasma-nm in many (most?) distros.

Thank you to everyone who contributed to this widget!

§ If you are puzzled why anyone would ever choose plasma-desktop, it's because I am tentatively migrating from Gnome. I do not want Gnome Keyring and KWallet clashing during the migration. If I continue with Plasma, then I will still be mostly using LibreOffice, Firefox, and other non-KDE apps.

Zren commented 3 years ago

It was never documented since I was going to make it optional but dragged my ass over implementing it. Issue 212 is fixed in git master and a new version will be released soon.