Bug 405337 - Add command line switch to clear QML cache
Summary: Add command line switch to clear QML cache
Status: RESOLVED FIXED
Alias: None
Product: lattedock
Classification: Unmaintained
Component: application (other bugs)
Version First Reported In: git (master)
Platform: Kubuntu Linux
: NOR wishlist
Target Milestone: ---
Assignee: Michail Vourlakos
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-11 07:47 UTC by Radovan Skolnik
Modified: 2019-03-11 08:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Radovan Skolnik 2019-03-11 07:47:29 UTC
SUMMARY
It would be nice to either a) have a command line switch to clear QML cache or b) alter behaviour of -r switch so that it clears the cache. Usually upon upgrade of latte-dock it becomes unusable (unable to start) without manually deleting the QML cache.

STEPS TO REPRODUCE
1. Upgrade latte-dock to latest version
2. Use: latte-dock -r

OBSERVED RESULT
Some part of the application is rendered but is unusable - no applets...

EXPECTED RESULT
Should start fine.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Kubuntu 18.10 cosmic
(available in About System)
KDE Plasma Version: 5.54.0
KDE Frameworks Version: 5.54.0
Qt Version: 5.11.1
Comment 1 Michail Vourlakos 2019-03-11 07:49:13 UTC
very good idea!
Comment 2 Michail Vourlakos 2019-03-11 07:50:22 UTC
is there any reason the "-r" is proposed instead of something else?

I would like more, -cc -> Clear Cache
Comment 3 Radovan Skolnik 2019-03-11 07:53:28 UTC
(In reply to Michail Vourlakos from comment #2)
> is there any reason the "-r" is proposed instead of something else?
> 
> I would like more, -cc -> Clear Cache

No specific reason at all. Just when I upgrade the package I usually try "latte-dock -r" to replace the running instance with upgraded one. That's where I find out if it works or not. If it doesn't I have to clear the cache. So it would be convenient to do this in one go.

However additional switch is perfectly OK with me. Would just do "latte-dock -r -cc". No problem there.
Comment 4 Michail Vourlakos 2019-03-11 08:09:34 UTC
Git commit f2b2121003a30b1272d08e8244089bc3a9c1e788 by Michail Vourlakos.
Committed on 11/03/2019 at 08:08.
Pushed by mvourlakos into branch 'master'.

add option to clear qml cachec from command line

--add comments in order to distinguish parameters sections

M  +18   -0    app/main.cpp

https://commits.kde.org/latte-dock/f2b2121003a30b1272d08e8244089bc3a9c1e788