KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   


- Content .- Fans (12) . 

KGtk (Use KDE Dialogs in Gtk Apps)


KDE Improvement

Score 85%
KGtk (Use KDE Dialogs in Gtk Apps)

KGtk (Use KDE Dialogs in Gtk Apps)

KGtk (Use KDE Dialogs in Gtk Apps)

Link:  http://
Downloads:  17233
Submitted:  Mar 6 2006
Updated:  Nov 3 2011


This is a quick-and-dirty LD_PRELOAD hack that allows *some* Gtk applications to use KDE's file dialogs when run under KDE.

The Gtk file chooser functions have been overridden to communicate with this KDE module/application.

After compiling and installing this, you can run Gtk applications in 2 ways:

A. call /usr/local/bin/kgtk-wrapper gimp

B. i. Create a symbolic link from the wrapper script to your application, e.g.
ln -s /usr/local/bin/kgtk-wrapper /usr/local/bin/gimp
ii. Make sure /usr/local/bin is before /usr/bin (or wherever gimp is installed) in your $PATH
iii. Now simply run 'gimp' - this should find the wrapper script first.

If this works OK, then edit the .desktop file (e.g. /usr/share/applications/gimp.desktop) to have "Exec=/usr/local/bin/[appname]" instead of "Exec=[appname]", e.g. for gimp.desktop this would be:

Exec=/usr/local/bin/gimp-remote-2.2 %U


Exec=/usr/local/bin/kgtk-wrapper gimp-remote-2.2 %U

So far I have tested this with the following applications:

1. Kino. Works perfectly - in fact Kino was my main reason for doing this.
2. Firefox. Works with Firefox 1.5, but *not* Firefox 1.0.x
3. GIMP. Again, seems to work just fine. However, there is no progress bar on file loading - as GIMP uses a progress bar embedded in the file chooser.
4. Inkscape. Works OK - at least 0.43
5. Streamtuner - the folder browser button works.
6. AbiWord - does *not* work. Don't even try...
7. Glade2. Seems to work OK, however I have had it crash when loading Kino's .glade file, but not always. So I'm not sure if this is Glade's fault, or mine.
8. Eclipse. Will work only if dlsym can be overriden

As the only Gtk apps I use are Kino, GIMP, and a little of Firefox, this library works great for me. Your millage may vary, and please note that this is only a quick hack to get things working now for me. I'm not sure how stable it will be under heavy usage, so don't be surprised if it breaks. However, if it does break - the only thing that should happen is that the Gtk apps will fall back to using the standard Gtk dialogs.

p.s. Before anyone asks, as they always do:
Widget style: QtCurve, works for KDE and Gtk (also does KDE->Gtk icon mapping). This is set on the "Clear" variation.
Window decoration: Crystal with Knifty buttons
Font: Verdana. However, I have recompiled FreeType with the TrueType byte encoder enabled - this give great looking non anti-aliased fonts (otherwise they look *horrible*)


1. Gtk3 support.
2. Better, and safer, lookup of file filters.
3. Correctly determine size of string needed for pidfile!
4. Add thunderbird, and LibreOffice apps, to list of gtk2 apps.
5. Cleanup usless stuff; remove kdialogd3, qt3, qt4, kgtk2-wrapper, kqt3-wrapper, kqt4-wrapper.
6. Merge kgtkXX-wrapper scripts into kgtk-wrapper
7. Install kdialogd4 into KDE4 libexec dir.
8. Fix crash where client is terminated whilst file dialog is open.
9. Configurable debug. Pass cmake -DKGTK_DEBUG=true
When starting app, set KGTK_DEBUG env var, e.g.

KGTK_DEBUG=0x10 kgtk-wrapper lowriter

0x01 Connection debug
0x02 General debug
0x04 Filter get and set debug
0x08 Filter creation debug
0x10 Custom widget debug
0x20 dlsym debug
Values may be combined

10. If LibreOffice is detected (app is libreoffice, lowriter, etc.) then also set the OOO_FORCE_DESKTOP env var to gnome, so that we get nicer
11. When passing filters to KFileDialog, replace / with \/
12. Make filter combo non-editable.
13. When returning selected filter to Gtk app, also return the filter name and not just the file pattern. This way if two filters have the same file pattern the corrent one can be selected.
14. Support for checkbox custom widgets.
15. Save location history per app.

Send to a friend
Other  Apps  from CraigD
Report inappropriate content

goto page: prev  ... 25  26  27  28  29  30  31  32  33  34 


 Not compile under KDE 4.5.2

 by mkyral on: Oct 23 2010
Score 50%

I'm not able to compile it under KDE 4.5.2. It seems like they removed some files under this minor release:

[100%] Building CXX object kdialogd4/CMakeFiles/kdialogd4_bin.dir/kdialogd.o
In file included from /usr/include/kfileitem.h:32,
from /usr/include/kdirlister.h:24,
from /usr/include/kdiroperator.h:30,
from /var/tmp/portage/kde-misc/kgtk-0.10.1/work/KGtk-0.10.1/kdialogd4/kdialogd.cpp:5:
/usr/include/kdatetime.h:32:21: error: QMetaType: No such file or directory

Reply to this


 Re: Not compile under KDE 4.5.2

 by mkyral on: Oct 23 2010
Score 50%

Sorry, I was wrong: http://bugs.gentoo.org/show_bug.cgi?id=338568#c5

Reply to this



 by jospoortvliet on: Apr 15 2011
Score 50%
jospoortvlietjospoortvlie t
KDE, openSUSE, ownCloud

Just let me repeat that I think this is awesome :D

Gimp and Inkscape work perfectly. LibreOffice and Firefox have KDE file dialogs in openSUSE anyway so no need for those with kgtk2 btw.

I just wish there was an easier way of using this (for all gtk apps, maybe with a whitelist) than editing the global files which conflicts with package management...

Reply to this


 Source link

 by unikum111 on: Jun 6 2011
Score 50%

Link to source is wrong

Reply to this


 Two more apps to supported list

 by gcala on: Nov 4 2011
Score 50%

Have successfully used the wrapper with:

* truecrypt
* gnome-mplayer


Reply to this


 Bluefish not working

 by gcala on: Nov 4 2011
Score 50%

The wrapper doesn't work with bluefish; the terminal output when launching this program with and without the wrapper differs only in one line:

QSocketNotifier: Invalid socket 12 and type 'Read', disabling...

comparing when closing wrapped bluefish.

Reply to this


 Re: Bluefish not working

 by CraigD on: Nov 8 2011
Score 50%

Does bluefish start via a shell script? If so, then kgtk-wrapper will not be able to determine if its a Gtka pp or not. To force kgtk-wrapper to use Gtk2 for 'bluefish' (or whatever the commandline name is), edit ~/.kde/share/config/kgtkrc to have:


Does that help?

Reply to this


 Re: Re: Bluefish not working

 by gcala on: Nov 8 2011
Score 50%

No, it isn't a script:

$ file /usr/bin/bluefish
/usr/bin/bluefish: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.27, stripped

ldd output: http://paste.kde.org/143666/

Reply to this


 Hanbrake support

 by unikum111 on: Nov 24 2011
Score 50%

I tried kgtk-wrapper with Hanbrake GUI and it have works. But it not be able choose a directory (only files).

Reply to this

goto page: prev  ... 25  26  27  28  29  30  31  32  33  34 

Add commentBack

How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

 Who we are
More about us
Frequently Asked Questions
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

Add App
Public API
About KDE-Apps.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Sponsor us
Report Abuse

Copyright 2003-2015 KDE-Apps.org Team  
All rights reserved. KDE-Apps.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.