Emblems Hack

Various KDE 1.-4. Improvements

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

0
5 .0
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:

13 years ago

0.2: Added service menus and scripts for selecting emblems.
0.1: First public release.

Sebien

13 years ago

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.

Report

jazztyle

13 years ago

...but it does not build on my machine with kdelibs 3.5.6. output is here:

http://rafb.net/p/fc1ShG76.html

Report

C

GerbilSoft

13 years ago

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

Report

jazztyle

13 years ago

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

Report

d3f3nd3r

13 years ago

See my suggestion

http://www.kde-look.org/content/show.php?content=43260

Report

jeykey

13 years ago

Please help! Don't know how to install
this!

Report

C

GerbilSoft

13 years ago

You have to recompile kdelibs with the patch. There's a howto guide on compiling KDE here:

http://developer.kde.org/build/stable.html

Report

C

GerbilSoft

13 years ago

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

Report

bugmenot

13 years ago

it should be integrated in kde releases ;-)

Report

sabby7890

13 years ago

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:)

Report

Superstoned

13 years ago

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...

Report

13 years ago

0.2: Added service menus and scripts for selecting emblems.
0.1: First public release.

12345678910
Be the first to comment
File (click to download) Version Description PackagetypeArchitecture Downloads Date Filesize DL OCS-Install MD5SUM
*Needs pling-store or ocs-url to install things
Pling
0 Affiliates
Details
license
version
0.2
updated Jan 28 2007
added Jan 25 2007
downloads 24h
0
mediaviews 24h 0
pageviews 24h 0