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

ratings icons, tags and commento of folders and files

Tags: None
(comma "," separated)
fbertoldi
Registered Member
Posts
23
Karma
0
OS
I think is a good idea add rating, tags and comment for folders and files. But a) how it works (I do not see the star selected in Dolphin frame, nor is possible sort by rating)? b) How are stored this metadata (not in the .directory file, I see...)?
Thank you
User avatar
Rog131
Registered Member
Posts
828
Karma
10
fbertoldi wrote:I think is a good idea add rating, tags and comment for folders and files. But a) how it works (I do not see the star selected in Dolphin frame, nor is possible sort by rating)? b) How are stored this metadata (not in the .directory file, I see...)?
Thank you



KDE Frameworks 5 is using 'Extended file attributes': https://en.wikipedia.org/wiki/Extended_file_attributes . Freedesktop.org guidelines for extended attributes: https://www.freedesktop.org/wiki/Common ... ttributes/

Baloo & extended: https://community.kde.org/Baloo/Architecture
..supports storing additional file based metadata via extended attributes.


i.e

If you set the rating/comments/etc to the file/directory they are saved to the extended file attributes.

Image
Full image: http://imgur.com/vkiPGT3

Commandline tools:
- getfattr (--help)
- setfattr (--help)

=>
getfattr -d will dump all data
Code: Select all
$ getfattr -d '/media/sda1/Video/AtomicParsley/The Martian.mp4'
getfattr: Removing leading '/' from absolute path names
# file: media/sda1/Video/AtomicParsley/The Martian.mp4
user.baloo.rating="9"
user.xdg.comment="Year:2015. Genre:  Adventure  Comedy  Drama  Sci-Fi. Storyline: During a manned mission to Mars, Astronaut Mark Watney is presumed dead after a fierce storm and left behind by his crew. But Watney has survived and finds himself stranded and alone on the hostile planet. With only meager supplies, he must draw upon his ingenuity, wit and spirit to subsist and find a way to signal to Earth that he is alive. Millions of miles away, NASA and a team of international scientists work tirelessly to bring \"the Martian\" home, while his crewmates concurrently plot a daring, if not impossible, rescue mission. As these stories of incredible bravery unfold, the world comes together to root for Watney's safe return.."



Rating icons: viewtopic.php?f=289&t=134912


Looking 'rating' bugs from the KDE bugzilla:
- Bug 359506 - Dolphin doesn't show file's rating, tags, and comment: https://bugs.kde.org/show_bug.cgi?id=359506
- Bug 357960 - baloosearch cannot filter rating criteria correctly: https://bugs.kde.org/show_bug.cgi?id=357960
- Bug 361026 - Ratings: in detailed mode ratings are all the same: https://bugs.kde.org/show_bug.cgi?id=361026
=>
Image

KF 5.24.0
Dolphin 16.04.3
wolfi323
Registered Member
Posts
1129
Karma
11
OS
What dolphin version are you using?
Actually this should work in dolphin 16.04.0 or later.

But note that the file list only shows ratings (and other additional information) for files that are indexed by baloo.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], q.ignora, watchstar