From d6ce76044613d27125492f77091b15ddf9eea7df Mon Sep 17 00:00:00 2001 From: a2n Date: Tue, 22 Nov 2022 19:27:10 +0100 Subject: [PATCH] update metadata with good data --- .../contents/ui/Compact.qml | 1 + .../contents/ui/archupdate.qml | 2 +- a2n.archupdate.plasmoid/metadata.desktop | 23 ------------------- a2n.archupdate.plasmoid/metadata.json | 13 +++-------- 4 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 a2n.archupdate.plasmoid/metadata.desktop diff --git a/a2n.archupdate.plasmoid/contents/ui/Compact.qml b/a2n.archupdate.plasmoid/contents/ui/Compact.qml index 480b03f..34c542e 100644 --- a/a2n.archupdate.plasmoid/contents/ui/Compact.qml +++ b/a2n.archupdate.plasmoid/contents/ui/Compact.qml @@ -67,6 +67,7 @@ RowLayout { } visible: true text: total + icon: icon } } diff --git a/a2n.archupdate.plasmoid/contents/ui/archupdate.qml b/a2n.archupdate.plasmoid/contents/ui/archupdate.qml index 1164b2e..dc335ea 100644 --- a/a2n.archupdate.plasmoid/contents/ui/archupdate.qml +++ b/a2n.archupdate.plasmoid/contents/ui/archupdate.qml @@ -10,7 +10,7 @@ import "../service" as Sv Item { id: archupdate Plasmoid.preferredRepresentation: Plasmoid.compactRepresentation - Plasmoid.compactRepresentation: Compact { id: compact } + Plasmoid.compactRepresentation: Compact {} // load one instance of each needed service Sv.Updater{ id: updater } Tb.Cmd { id: cmd } diff --git a/a2n.archupdate.plasmoid/metadata.desktop b/a2n.archupdate.plasmoid/metadata.desktop deleted file mode 100644 index 4bd50ef..0000000 --- a/a2n.archupdate.plasmoid/metadata.desktop +++ /dev/null @@ -1,23 +0,0 @@ -[Desktop Entry] - -Name=archupdate -Comment=Arch update counter -Icon=preferences-desktop -Type=Service - -X-Plasma-API=declarativeappletscript -X-KDE-ServiceTypes=Plasma/Applet -X-Plasma-MainScript=ui/archupdate.qml -X-Plasma-Provides=org.kde.plasma.virtualdesktops - -X-KDE-PluginInfo-Author=Bouteiller Alan -X-KDE-PluginInfo-Email=a2n.dev@pm.me -X-KDE-PluginInfo-Name=a2n.archupdate.plasmoid -X-KDE-PluginInfo-Website=https://github.com/bouteillerAlan/archupdate - -X-KDE-PluginInfo-Version=3 -X-KDE-PluginInfo-Category=Windows and Tasks -X-KDE-PluginInfo-Depends= -X-KDE-PluginInfo-EnabledByDefault=true - -X-KDE-PluginInfo-License=GPL-3.0+ diff --git a/a2n.archupdate.plasmoid/metadata.json b/a2n.archupdate.plasmoid/metadata.json index 5b1e342..f0c230e 100644 --- a/a2n.archupdate.plasmoid/metadata.json +++ b/a2n.archupdate.plasmoid/metadata.json @@ -6,14 +6,10 @@ "Name": "Bouteiller Alan" } ], - "Category": "Windows and Tasks", + "Category": "System Information", "Description": "Count and show the pending pacman update", - "Dependencies": [ - "wmctrl" - ], - "EnabledByDefault": true, "Icon": "preferences-desktop", - "Id": "archupdate", + "Id": "a2n.archupdate.plasmoid", "License": "GPL-3.0+", "Name": "Arch Update Counter", "ServiceTypes": [ @@ -23,8 +19,5 @@ "Website": "https://github.com/bouteillerAlan/archupdate" }, "X-Plasma-API": "declarativeappletscript", - "X-Plasma-MainScript": "ui/archupdate.qml", - "X-Plasma-Provides": [ - "org.kde.plasma.virtualdesktops" - ] + "X-Plasma-MainScript": "ui/archupdate.qml" }