rbn42 / panon

An Audio Visualizer Widget in KDE Plasma
GNU General Public License v3.0
192 stars 30 forks source link

GetHotNewStuff #15

Closed flying-sheep closed 4 years ago

flying-sheep commented 4 years ago

Should be super easy. Sadly the category isn’t available here, which I think is the reason it doesn’t work: https://store.kde.org/ocs/v1/content/categories

Searching for things in the category does work: https://api.kde-look.org/ocs/v1/content/data?categories=564&tags=panon

kde/plasmoid/contents/config/panon.knsrc

[KNewStuff3]
Name=Panon
ProvidersUrl=https://api.kde-look.org/ocs/providers.xml
Categories=Various KDE Stuff
TagFilter=panon
XdgTargetDir=panon
Uncompress=archive

kde/plasmoid/contents/config/ConfigEffects.qml

NewStuff.Button {
    downloadNewWhat: "effects"
    configFile: Utils.get_root() + "/config/panon.knsrc"
}

@siyuandong @rvs75 can you help with the category problem?

rbn42 commented 4 years ago

Sorry, I was finishing the Chinese translation. Now I can focus on this, need to read your post on reddit.com again.

flying-sheep commented 4 years ago

Well, all you need is in here. It’s literally that easy.

The only changes apart from those two:

I can do a PR once the store thing is fixed

rbn42 commented 4 years ago

I can do a PR once the store thing is fixed

You are so nice!

BTW, do you know what was the version of org.kde.newstuff when org.kde.kirigami 2.3 was released? I hope people using org.kde.kirigami 2.3 (like debian 7?) won't have a problem with this org.kde.newstuff.

import org.kde.newstuff 1.62 as NewStuff
import org.kde.kirigami 2.3 as Kirigami
rbn42 commented 4 years ago
  • Shaders need to be loaded from ${XDG_DATA_HOME-$HOME/.local/share}/panon (I think, let’s see where they end up)

I can accept either way.

flying-sheep commented 4 years ago

BTW, do you know what was the version of org.kde.newstuff when org.kde.kirigami 2.3 was released? I hope people using org.kde.kirigami 2.3 (like debian 7?) won't have a problem with this org.kde.newstuff.

Good question, sadly I don’t know. I think we can look it up by checking any of the .qml files in the package, like /usr/lib/qt/qml/org/kde/newstuff/qml/Button.qml, because they also contain the import line.

I filed this for the category problem: https://phabricator.kde.org/T12544

rbn42 commented 4 years ago

Good question, sadly I don’t know. I think we can look it up by checking any of the .qml files in the package, like /usr/lib/qt/qml/org/kde/newstuff/qml/Button.qml, because they also contain the import line.

I will search Debian 7's repo.