Sat Dec 08, 2018 10:50 am
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,
Sat Dec 08, 2018 2:59 pm
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:
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
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
Sun Dec 09, 2018 9:11 pm
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.
Mon Dec 10, 2018 6:43 pm
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.
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
The keneric.so will be made by compiling the C++ source.
The compilation is depending (exact package names are distro specific):
kio (kio-dev / libkf5kio-dev)
and the shared library will be installed to the distribution specific location.
Example with the Arch Linux:
Now the keneric.so is installed to the /usr/lib/qt/plugins/keneric.so.
Example with the Neon user edition:
Now the keneric.so is installed to the /usr/lib/x86_64-linux-gnu/qt5/plugins/keneric.so
KDE Frameworks 5 services are installed to the
Making the user kservices5 directory if it doesn't exist:
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:
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:
Mon Dec 10, 2018 11:54 pm
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.
Sun Dec 16, 2018 12:05 pm
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
Modifying the folder icon with the Imagemagick
( https://www.imagemagick.org/script/index.php )
folder.jpg on the top of the folder icon
Polaroid on the top of the folder icon
folder.jpg between the folder icon background and the front
Back, Front and directory icon:
...and the plasma can also use the Keneric:
Mon Dec 31, 2018 11:06 pm
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 .