Description: This is a simple hack to kdelibs-3.5.5 (and 3.5.6) that adds basic emblem support, like in GNOME. (It doesn't use the same format, though.)
To set an emblem, right-click a file, select Actions, Emblems, and Select Emblem. You can also delete an emblem by choosing Delete Emblem in the same menu. Please note that for symbolic links, you need to set the emblem on the file the link is pointing to, and not the symbolic link.
Currently, emblems are not drawn on thumbnail previews. I'll attempt to fix this in a later version.
Requirements: - KDE 3.5.5 or 3.5.6 - Extended Attribute support (xattrs must be supported by the kernel and the current filesystem - add the user_xattr option to fstab if necessary)
Installation: 1. Apply the kdelibs-3.5.5-emblem-0.1 patch to the kdelibs source directory and recompile kdelibs. 2. Copy all files in the bin/ directory of the emblems tarball to /usr/local/bin (or another directory in PATH). 3. Copy all files in the servicemenus/ directory of the emblems tarball to ~/.kde/share/apps/konqueror/servicemenus/ or the system-wide service menus directory.
Suggestions and comments are welcome.Last changelog:
0.2: Added service menus and scripts for selecting emblems. 0.1: First public release.
I dreamt about this feature for so long...
It's especially more straightforward for folder icons. With emblems, you are not limited to icons folder_music, folder_images... You can put a real icon folder and add any icon you want as an emblem.
Thank you very much.
Please contact KDE developers to include it in KDE 4. I think they already talked about that, so they are not reluctant to the idea. I think they will be pleased that feature is already coded and will integrate it quickly.
Bah, forgot to add an include for ksvgiconinterface.h
Add this below the include for attr/xattr.h in kdelibs-3.5.6/kio/kio/kfileitem.cpp:
#ifdef HAVE_LIBART
#include <ksvgiconengine.h>
#endif
made a patch for that:
--- kio/kio/kfileitem.cpp.OLD 2007-01-31 18:30:22.000000000 +0100
+++ kio/kio/kfileitem.cpp 2007-01-31 18:30:44.000000000 +0100
@@ -49,6 +49,9 @@
// Emblem includes
#include
#include
+#ifdef HAVE_LIBART
+#include
+#endif
class KFileItem::KFileItemPrivate {
public:
..but it still does not work :|
output is here:
http://rafb.net/p/28ZGzT29.html
well, of course. but it should be tested first - and i guess this is an attempt to get ppl to test it ;-)
a gui would be very usefull for that, tough...
I agree with that, KDE could use something like emblems. But a cool idea is to make some emblems visible only when user hovers mouse cursor over a particular icon. I would like to see something like that in KDE4:)
Ratings & Comments
11 Comments
I dreamt about this feature for so long... It's especially more straightforward for folder icons. With emblems, you are not limited to icons folder_music, folder_images... You can put a real icon folder and add any icon you want as an emblem. Thank you very much. Please contact KDE developers to include it in KDE 4. I think they already talked about that, so they are not reluctant to the idea. I think they will be pleased that feature is already coded and will integrate it quickly.
...but it does not build on my machine with kdelibs 3.5.6. output is here: http://rafb.net/p/fc1ShG76.html
Bah, forgot to add an include for ksvgiconinterface.h Add this below the include for attr/xattr.h in kdelibs-3.5.6/kio/kio/kfileitem.cpp: #ifdef HAVE_LIBART #include <ksvgiconengine.h> #endif
made a patch for that: --- kio/kio/kfileitem.cpp.OLD 2007-01-31 18:30:22.000000000 +0100 +++ kio/kio/kfileitem.cpp 2007-01-31 18:30:44.000000000 +0100 @@ -49,6 +49,9 @@ // Emblem includes #include #include +#ifdef HAVE_LIBART +#include +#endif class KFileItem::KFileItemPrivate { public: ..but it still does not work :| output is here: http://rafb.net/p/28ZGzT29.html
See my suggestion http://www.kde-look.org/content/show.php?content=43260
Please help! Don't know how to install this!
You have to recompile kdelibs with the patch. There's a howto guide on compiling KDE here: http://developer.kde.org/build/stable.html
Also, to apply the patch, run this command in the kdelibs source directory: patch -p1 </path/to/52193-kdelibs-3.5.5-emblem-0.1.patch
it should be integrated in kde releases ;-)
well, of course. but it should be tested first - and i guess this is an attempt to get ppl to test it ;-) a gui would be very usefull for that, tough...
I agree with that, KDE could use something like emblems. But a cool idea is to make some emblems visible only when user hovers mouse cursor over a particular icon. I would like to see something like that in KDE4:)