Skip to content
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

KPlugin.id should match plasmoid package directory #9

Open
ashwinvis opened this issue Oct 29, 2024 · 5 comments
Open

KPlugin.id should match plasmoid package directory #9

ashwinvis opened this issue Oct 29, 2024 · 5 comments

Comments

@ashwinvis
Copy link
Contributor

When installed from Discover the plasmoid installs to ~/.local/share/plasma/plasmoids/colorschemeswapper. This is not the same directory name as KPlugin.id and as a result it refuses to work and gives:

 This Widget was written for an unknown older version of Plasma and is not compatible with Plasma 6. Please contact the widget’s author for an updated version.Error loading Applet: package does not exist. 

See:

https://discuss.kde.org/t/how-to-debug-while-porting-plasma-5-plasmoids-to-plasma-6/10481/5

Manually renaming the directory to com.github.heqro.day-night-switcher fixes it.

@ashwinvis
Copy link
Contributor Author

"Id": "com.github.heqro.day-night-switcher",

@heqro
Copy link
Owner

heqro commented Nov 2, 2024

Apologies, I genuinely don't understand what you need me to do here. Could you send a pull request with the change that would get the plasmoid running?

@ashwinvis
Copy link
Contributor Author

From my understanding, it is an issue with how you package and upload it to https://store.kde.org/p/1804745/. It seems like you rename the package directory to colorschemewrapper

Is that how do you do it?

@heqro
Copy link
Owner

heqro commented Nov 2, 2024

Just to double check, I've just downloaded the latest version (0.1.0) from the KDE store, named daynightswitcher-240810.tar.gz, using kpackagetool5 --install daynightswitcher-240810.tar.gz. It created the directory ~/.local/share/plasma/plasmoids/com.github.heqro.day-night-switcher. So it's working as expected, apparently?

Just so that there's no mistaking, I also removed the older versions of the widget for available for Plasma 6, whilst keeping the latest version that I released for Plasma 5... I'm not certain if that will solve anything, but I'm all ears.

@ashwinvis
Copy link
Contributor Author

What if you use Discover? That's how I stumbled upon this bug

https://apps.kde.org/discover/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants