
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
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.
13 years ago
0.2: Added service menus and scripts for selecting emblems.
0.1: First public release.
13 years ago
0.2: Added service menus and scripts for selecting emblems.
0.1: First public release.
Sebien
13 years ago
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
http://rafb.net/p/fc1ShG76.html
Report
GerbilSoft
13 years ago
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
--- 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
http://www.kde-look.org/content/show.php?content=43260
Report
jeykey
14 years ago
this!
Report
GerbilSoft
13 years ago
http://developer.kde.org/build/stable.html
Report
GerbilSoft
13 years ago
patch -p1 </path/to/52193-kdelibs-3.5.5-emblem-0.1.patch
Report
bugmenot
14 years ago
Report
sabby7890
14 years ago
Report
Superstoned
14 years ago
a gui would be very usefull for that, tough...
Report