This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Developing a new plasmoid - how to refresh qml files

Tags: None
(comma "," separated)
ajimenez
Registered Member
Posts
1
Karma
0
Hi all,

I'm a newbie at developing plasmoids, and i'm reading some tutorials and https://api.kde.org/ itself, and trying to write some pieces of code. Following https://techbase.kde.org/Development/Tu ... ingStarted instructions and some others, i have my own plasmoid that only shows some text labels. I'm able to install it with
Code: Select all
plasmapkg2 --install ajrmonitor
(from the parent directory). Then, i can add it to the desktop and i see it well.

And now the problem. If i apply some modifications to the qml files, i use
Code: Select all
plasmapkg2 --remove ajrmonitor
to remove it and again
Code: Select all
plasmapkg2 --install ajrmonitor
. But, if i add it again to the desktop, i see exactly the same than before, without modifications. So, i can't apply any modification in the code. The only way is renaming the directory of the plasmoid for each modification.

I checked that, when installed, in /home/xxxxx/.local/share/plasma/plasmoids/ my plasmoid directory contained the updated qml files, with the changes.

Can anybody help me with this problem? i can't guess what am i doing wrong.

Thank you all.
gdrift
Registered Member
Posts
2
Karma
0
Take a look at these examples: https://github.com/Zren/plasma-applets/tree/master/example
I'm not the author, but found it helpful.

Specifically the reinstall script:
Code: Select all
plasmapkg2 -u package
killall plasmashell
kstart5 plasmashell


Also, for svg files that get cached:
Code: Select all
rm ~/.cache/plasma*.kcache
basse
Registered Member
Posts
17
Karma
0
I ran into same problem.. restarting the whole plasmashell seems quite an overkill.. and the whole install uninstall everytime you do a small change..

..so, what I am doing current in development phase is just test my plasmoid with "plasmoidviewer" . works fine.

.b


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]