-
 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   
 
Apps
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login


Sponsoring


-
- Content .- Fans (12) . 

KGtk (Use KDE Dialogs in Gtk Apps)

   0.11.0  

KDE Improvement

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


KGtk (Use KDE Dialogs in Gtk Apps)
zoom


KGtk (Use KDE Dialogs in Gtk Apps)
zoom


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

Description:

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

or:

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




Changelog:

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




LicenseGPL
Source(0.11.0)
(0.10 (Previous release))
Send to a friend
Subscribe
Other  Apps  from CraigD
Report inappropriate content



goto page: prev  ... 11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26 ...

-

 about mhwaveedit

 
 by sanfanling on: Oct 21 2007
 
Score 50%

it's strange, mhwaveedit use kgtk, can't import any media file


Reply to this

-

 0.9.3 for MDV 2008.0

 
 by JardaK on: Oct 22 2007
 
Score 50%

I build rpm of KGtk 0.9.3 for Mandriva 2008.0. You can download here: ftp://mandrivauser.cz/people/jardak/MDV_2008.0/kgtk-0.9.3-1mjk.mdv2008.0.i586.rpm


Reply to this

-

 Re: 0.9.3 for MDV 20

 
 by anv on: Oct 25 2007
 
Score 50%

Excelente. Sería bueno que Mandriva lo incluyera en los repositorios de contrib, o que lo pusieran en el PLF.

Una idea: podrías incluir un script post-install que verifique que programas estan instalados y genere entradas de menú incluyendo su llamado a traves del wrapper de kgtk (sin quitar la original)


Reply to this

-

 KDE3 dialogs for qt4

 
 by MamiyaOtaru on: Oct 25 2007
 
Score 50%

-DKGTK_KDE3=true instructs CMake to create makefiles for the KDE3 version of KDialogD. ... Turning this on, sets ... -DKGTK_QT4=false

Why? This means I can no longer have KDE3 dialogs in Qt4 apps. This is something that was entirely possible with kgtk-0.9.0.

With that version I could get kde3 dialogs in gtk2, qt3 and qt4 apps. If this is not possible with cmake, then switching to cmake was IMHO a regression.

This is IMHO broken. Qt4 apps are becoming rather common, but most kde users are still with kde3.


Reply to this

-

 Re: KDE3 dialogs for qt4

 
 by MamiyaOtaru on: Oct 25 2007
 
Score 50%

http://img80.imageshack.us/my.php?image=kgtkoldusagetn2.png for something that was possible with 0.9.0 but is no longer


Reply to this

-
.

 Re: KDE3 dialogs for qt4

 
 by CraigD on: Oct 26 2007
 
Score 50%

It is not broken. Please try reading the README file before complaining. If you did you would've noticed:

"Mixing '-DKGTK_KDE3=true' and '-DKGTK_KDE4=true' wont work, so compile the Qt3/KDE3, and Qt4/KDE4 variants separately. Also, the 'build' folder *must* be cleaned before switching to/from Qt3/KDE3 from/to Qt4/KDE4"

So, to compile the Qt4 variant, remove the 'build' folder, create a new one, and then call

cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DKGTK_KDE4=true -DKGTK_QT4=true -DKGTK_GTK2=false
make && sudo make install

..this will build the Qt4 LD_PRELOAD library only (if you do not have KDE4)


Basically you *can't* *compile* the Qt4/KDE4 version *at the same time* as the Qt3/KDE3 versions. After compiling Qt3/KDE3, delete the build folder, and start a Qt4/KDE4 build. Simple really.


Reply to this

-

 Opera and manually..

 
 by cookies on: Oct 27 2007
 
Score 50%

In Opera, when you save a file, you have to manually supply the name... Is this an Opera issue, or a KGTK issue?


Y-A-L-B, yet another Linux blog http://y-a-l-b.blogspot.com/

Reply to this

-
.

 Re: Opera and manually..

 
 by CraigD on: Oct 29 2007
 
Score 50%

...probably a KGtk issue - as opera supplies a filename to the standard dialogs. I'll take a look and see if I can fix.


Reply to this

-
.

 Re: Opera and manually..

 
 by CraigD on: Oct 29 2007
 
Score 50%

...ok, found the problem - and a solution. Will be fixed in the next release.


Reply to this

-
.

 Packages for kubuntu

 
 by epsilom on: Nov 4 2007
 
Score 50%

Packages for kubuntu gutsy of kgtk 0.9.4 :

http://eidos.un.googlepages.com/kgtk_0.9.4-1_i386.deb


Reply to this

-

 GLIBC_2.4' not found

 
 by toadhall on: Nov 12 2007
 
Score 50%

Hi,

I get an error when trying to call up the programme. However, my path appears to be correct and when I am in

# /usr/local/bin

I link

# ln -s /usr/bin/kgtk-wrapper gimp

Then, as user, I change to
$ /usr/local/bin

and call up gimp I get

$ /bin/bash: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.4' not found (required by /usr/lib/kgtk/libkgtk2.so)

Am I missing something incredibly obvious? I googled but no joy :(


Reply to this

goto page: prev  ... 11  12  13  14  15  16  17  18  19  20  21  22  23  24  25  26 ...

Add commentBack






-
-
Do you like or dislike Ubuntu Unity?
 Yes, unity is alien technology!
 It is less confusing than Gnome 3 default, shell.
 Granny thinks it is much more usable than Gnome 2
 Canonical is embarrasing itself with this split project
 Gnome 3 default shell is much better
 I dislike Unity, Gnome 3 default shell is alien technology!
 None of the above, I like the 2Gb for free and Apple alike behavior. Will post a comment instead

resultmore
 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Apps
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
Events RSS   

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

Copyright 2003-2014 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.