![]() Registered Member ![]()
|
Hello,
i am new here and i am very pleased with the look and feel of KDE-Neon. I use it on a lenovo-thinkpad x220 and installation went quite well. Better and faster than under windows. Amazing! There is one thing i cannot find in dolphin which i am used to from windows. This is the folder.jpg-function that is so useful when using your laptop as a music-box-device. With the album-art displayed in the filemanager you can browse very comfortably through your music collection by looking at the covers of the albums. just like browsing through a Lp- or Cd- collection in the real world. In Dolphin i get a display of several file-pics in every folder but not one that i defined to be the face of the folder. Like the folder.jpg in windows. Does this possibility exist in Dolphin or any other linux-file manager? Many thanks in advance for any kind of answer, franz |
![]() Registered Member ![]()
|
KDE preview/thumbnail images
The KDE applications can show a thumbnail for a file/folder if there is a thumb creator plugin installed for the file (or folder) type. The standard KDE folders thumbnailer is showing four images if there are at least four files to thumbnail. ![]() Same folder with the Keneric: ![]() Optional thumbnailers The KDE thumbnailers are plugins. You could install another and enable the wanted one from the settings. The KDE is using freedesktop specifications: http://freedesktop.org/wiki/Specifications/ and there the specification for storing file thumbnails: https://specifications.freedesktop.org/ ... atest.html . The KDE Frameworks 5 thumbnailer API: https://api.kde.org/frameworks/kio/html ... eator.html Example with the Keneric plugin https://store.kde.org/p/1080815/
1) Installing the Kenric thumbnailer plugin. 2) Making/adding to the stripPicture script file:
This will use folder.jpg, Cover.png, Poster.jpg or Front.jpg file as folder thumbnails. 3) Making $HOME/.local/share/kservices5/kenericfolder.desktop:
4) Disabling the standard KDE folders thumbnailer and enabling the Keneric thumbnailer: ![]() 5) Clicking the Preview button: ![]() Another option - Make 'Magick pile of Polaroids' with the KDE service menu Older example: https://www.kubuntuforums.net/showthrea ... post417941 ![]() ![]() Preview clip: https://youtu.be/-JEfOa8gAWQ |
![]() Registered Member ![]()
|
Hello
and thank you veryvery much for answering. It looks like you are giving me EXACT the information i am looking for BUT i do not know how to get it done! I tried my best without the right result. There are some things i am not sure if i did them right. How exactly do i install a plug in? I downloaded it, extracted it in the downloadfolder, and copied it (with the manipulated script-files) to the usr/share/kservices5/ folder. I had to install nautilus to get there, because i couldn't start dolphin with super-user-rights. The second thing i am not sure about is WHERE EXACTLY to put the code-snippets you gave me in your instruction. Maybe i have put them to wrong place in the scripts. It would be so nice to get this working and i am a bit frustrated that my knowledge is so limited. Greetings, Franz |
![]() Registered Member ![]()
|
Browsing to the https://store.kde.org/p/1080815/
Dowloading the 174485-keneric-0.3.tar.gz Unpacking the tar.gz ![]() There is /keneric-0.3/readme/readme.html - Hmm maybe it needs a rewrite. Trinity To work the Keneric thumbnailer will need: - Shared library file: keneric.so - Desktop file for the thumbnailer. In this case: kenricfolder.desktop - Exeutable script file: stripPicture keneric.so The keneric.so will be made by compiling the C++ source. The compilation is depending (exact package names are distro specific): cmake extra-cmake-modules kio (kio-dev / libkf5kio-dev) and the shared library will be installed to the distribution specific location. Example with the Arch Linux:
Installling:
Compiling example: ![]()
Now the keneric.so is installed to the /usr/lib/qt/plugins/keneric.so. Example with the Neon user edition:
Installing:
Compiling example:
Now the keneric.so is installed to the /usr/lib/x86_64-linux-gnu/qt5/plugins/keneric.so kenricfolder.desktop KDE Frameworks 5 services are installed to the
Making the user kservices5 directory if it doesn't exist:
Making $HOME/.local/share/kservices5/kenericfolder.desktop:
![]() stripPicture The 'stripPicture' could be a simple executable shell script:
The shell scripts are looked from the $PATH How to set your $PATH variable in Linux: https://opensource.com/article/17/6/set-path-linux The $PATH can be looked with the konsole:
I'm using bash (with the Arch Linux) and I have the $HOME/.bash_profile. It has: export PATH="${PATH}:$HOME/.bin" So my system is looking executables from:
I can use for the script file the '/home/rog131/.bin/stripPicture'. ![]() The Neon has .profile file:
So the script file can be in '$HOME/.local/bin/stripPicture' ![]() The '$HOME/.local/bin' can be made with the command:
or with the Dolphin right click 'Create New' context menu: ![]() |
![]() Registered Member ![]()
|
Hello Rog,
Thank you so very much for your effort! With your detailed and exact description and all the examples and screenshots i did it! It works wonderfully and looks better than in the windows explorer. I like KDE-Neon so much and this was the only feature (important one for me) that could have lured me back to this nonfuncional OS. It also is an amazing experience to be helped in such a friendly way! Thank you again and i hope you have a pleasent week. Greetings, Franz |
![]() Registered Member ![]()
|
Few notes
True or false https://api.kde.org/frameworks/kio/html ... eator.html
![]() Preview clip of true or false: https://youtu.be/17uGo_cCZ2A Oneliners to make folder icon from the folder.jpg Straight copy
Result: ![]() Modifying the folder icon with the Imagemagick ( https://www.imagemagick.org/script/index.php ) folder.jpg on the top of the folder icon
Result: ![]() $HOME/.local/share/icons/folders/breeze_folder.png is ![]() Polaroid on the top of the folder icon
Result: ![]() folder.jpg between the folder icon background and the front
Result: ![]() Back, Front and directory icon: ![]() ...and the plasma can also use the Keneric: ![]() |
![]() Registered Member ![]()
|
More notes:
Now and then the Dolphin is using the default folders icons. I think that this is a variant of the Bug 402530 - Folder previews are shown for folders that have previews turned off - https://bugs.kde.org/show_bug.cgi?id=402530 . |
Registered users: Bing [Bot], blue_bullet, Google [Bot], Sogou [Bot]