| Summary: | Add Tag button in the Information panel (F11) adds slash to added tags which causes issues | ||
|---|---|---|---|
| Product: | [Applications] dolphin | Reporter: | player_005 |
| Component: | panels: information | Assignee: | Dolphin Bug Assignee <dolphin-bugs-null> |
| Status: | RESOLVED DUPLICATE | ||
| Severity: | normal | CC: | brokencanoe, dolphin-bugs-null, goodaqua, kodyvonbargen, tagwerk19 |
| Priority: | NOR | ||
| Version First Reported In: | 24.08.2 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | https://invent.kde.org/libraries/baloo-widgets/-/merge_requests/88 | Version Fixed/Implemented In: | |
| Sentry Crash Report: | |||
| Attachments: |
a python script to automatically fix file tags with an extra slash ("/")
kedittagsdialog.cpp Baloo-widgets.patch |
||
|
Description
player_005
2024-08-07 14:41:05 UTC
Created attachment 172494 [details]
a python script to automatically fix file tags with an extra slash ("/")
For anyone else coming across this issue who wants to use the information panel for tagging but also wants to be able to browse tags properly, this is my python script that I use to recursively fix all file tags starting from a given directory (requires xattr which can be installed from pypi).
I'm not super familiar with the source code, nor do I know how to build a custom baloo-widgets and have that work with my Dolphin instance, so I might be totally wrong with this but in baloo-widgets/src/kedittagsdialog.cpp line 148 (https://github.com/KDE/baloo-widgets/blob/master/src/kedittagsdialog.cpp#L148), I wonder if the leading "QLatin1Char('/') +" is the reason it's happening. (In reply to Kody from comment #2) > I'm not super familiar with the source code, nor do I know how to build a > custom baloo-widgets and have that work with my Dolphin instance, so I might > be totally wrong with this but in baloo-widgets/src/kedittagsdialog.cpp line > 148 > (https://github.com/KDE/baloo-widgets/blob/master/src/kedittagsdialog. > cpp#L148), I wonder if the leading "QLatin1Char('/') +" is the reason it's > happening. Thank You! That looks like it really could be the relevant code, especially considering it was added 8 months ago, and I remember this is around the time this bug started to happen. I am, unfortunately, not at all familiar with the codebase either, but maybe someone else with more knowledge will be able to confirm this is the cause and pr a solution. *** Bug 493862 has been marked as a duplicate of this bug. *** (In reply to tagwerk19 from comment #4) > *** Bug 493862 has been marked as a duplicate of this bug. *** Upon reflection there are two bugs here... ... One is the way that Dolphin adds the leading slash (when it probably should not) ... The second is that Dolphin cannot cope with existing leading slashes (so it stumbles on tags:/mytag) (In reply to tagwerk19 from comment #5) > ... Dolphin adds the leading slash (when it probably should not) Marking confirmed.... Confirmed in Dolphin 24.08.1 on : EndeavourOS KDE Plasma Version: 6.1.5 KDE Frameworks Version: 6.6.0 Qt Version: 6.7.3 Kernel Version: 6.11.1-arch1-1 (64-bit) (Tagging files in Gwenview works without issue). Fix me if there is more ancient bug report than #488588 *** This bug has been marked as a duplicate of bug 488588 *** Created attachment 174643 [details]
kedittagsdialog.cpp Baloo-widgets.patch
Patch I made fixed my problem. Implement it at latest git of Baloo-widgets.
|