-
 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   
 
Artwork
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:  17102
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  Artwork  from CraigD
Report inappropriate content



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

-

 Chakra support

 
 by -luk- on: Nov 28 2011
 
Score 50%

Is there a way to integrate this program in chakra. Actually apps like gimp or firefox are installed using bundles.Everytime you launch a program the system mount a little partition in which the program is executed.

Is there a way to use kgtk?


Reply to this

-

 Firefox crash

 
 by unikum111 on: Dec 23 2011
 
Score 50%

Firefox crash when I try save page. Tested on 8 and 9 versions.


Reply to this

-

 KDE 4.8

 
 by johu on: Feb 2 2012
 
Score 50%

Can confirm that kgtk crashs firefox after dwonload in KDE 4.8 see downstream bug report:
https://bugs.gentoo.org/show_bug.cgi?id=401697


Reply to this

-

 Re: KDE 4.8

 
 by gnumdk on: Feb 12 2012
 
Score 50%

Same on archlinux...


Reply to this

-

 Re: KDE 4.8

 
 by gnumdk on: Feb 12 2012
 
Score 50%

Same on archlinux...


(firefox:2483): Gtk-CRITICAL **: IA__gtk_entry_get_text: assertion `GTK_IS_ENTRY (entry)' failed


Reply to this

-

 Re: KDE 4.8

 
 by CraigD on: Feb 13 2012
 
Score 50%

I can confirm the crash. But **please** do not report KGtk errors to upstream projects. KGtk is a massive *HACK*. The fact that it sometimes works is a bonus, but it messes about underneath the toolkit, so its hardly surprising that somethings crash.

Why not use the firefox-kde support created by openSUSE? This works much better, and is packaged with KUbuntu as well.


Reply to this

-

 Re: Re: KDE 4.8

 
 by gravy on: Apr 30 2012
 
Score 50%

Unfortunately firefox-kde-support is no longer packaged for Kubuntu 12.04 Precise. :(


Reply to this

-

 Re: Re: Re: KDE 4.8

 
 by negora on: May 19 2012
 
Score 50%

I've found the corresponding package in Launchad: https://launchpad.net/ubuntu/precise/+package/firefox-kde-support .

Surprisingly it's listed as an existing Ubuntu 12.04 package, although it can't be downloaded from the official Ubuntu repositories.

I've installed the package but it seems to have no effect on the file dialog window of the most recent version of Firefox.


Reply to this

-
.

 Re: Re: Re: Re: KDE 4.8

 
 by Murz on: Jun 3 2012
 
Score 50%
MurzMurz
Qseo.ru
Home
-
Alexey Korepov 1

Qseo.ru
Russian Federation, Nizhniy Novgorod
Last visit Aug 19 2014
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Kubuntu 12.04 remove support for this package: http://www.phoronix.com/scan.php?page=news_item&px=MTA3MjI


Reply to this

-
.

 Packages for Kubuntu 12.04 in ppa

 
 by Murz on: Jun 3 2012
 
Score 50%
MurzMurz
Qseo.ru
Home
-
Alexey Korepov 1

Qseo.ru
Russian Federation, Nizhniy Novgorod
Last visit Aug 19 2014
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

Because Kubuntu remove native support for KDE file dialogs in Firefox (more info here: http://www.phoronix.com/scan.php?page=news_item&px=MTA3MjI ) many users searching the way to solve this problem and got KDE file dialogs back.
So will be good if anybody can provide ppa with kgk packages, because install from ppa is very easier that compiling from sources.
In launchpad there are already exist KGTK package team: https://launchpad.net/~kgtk/+archive/ppa but version is too old. Is there any problems to compile updated version for Kubuntu 12.04?


Reply to this

-

 Re: Packages for Kubuntu 12.04 in ppa

 
 by Murz on: Jun 4 2012
 
Score 50%
MurzMurz
Qseo.ru
Home
-
Alexey Korepov 1

Qseo.ru
Russian Federation, Nizhniy Novgorod
Last visit Aug 19 2014
0 Friends
0 Groups

More info
Send a message
Add as friend
Other contents
--

While KGTK for Kubuntu 12.04 didn't exist in ppa, I have found PPA with patched firefox for Kubuntu 12.04 users: https://launchpad.net/~alexey-ivanov/+archive/firefox-kde


Reply to this

-
.

 Not found

 
 by PabliNet on: Aug 21 2012
 
Score 50%

First of all I apologize for my English because I speak only Spanish.

Debian testing 3.2.0-3-686-pae + KDE 4.8.4

Library installed:
libgtk-3-0:i386
libgtk-3-bin
libgtk-3-common
libgtk-3-dev
libgtk2.0-0:i386
libgtk2.0-bin
libgtk2.0-common
libgtk2.0-dev


1) $ cmake .. -DCMAKE_INSTALL_PREFIX=/usr

-- The C compiler identification is GNU 4.7.1
-- The CXX compiler identification is GNU 4.7.1
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt-Version 4.8.2 (using /usr/bin/qmake)
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so;/usr/lib/i386-linux-gnu/libXft.so;/usr/lib/i386-linux-gnu/libXau.so;/usr/lib/i386-linux-gnu/libXdmcp.so
-- Looking for XOpenDisplay in /usr/lib/i386-linux-gnu/libX11.so;/usr/lib/i386-linux-gnu/libXext.so;/usr/lib/i386-linux-gnu/libXft.so;/usr/lib/i386-linux-gnu/libXau.so;/usr/lib/i386-linux-gnu/libXdmcp.so - found
-- Looking for gethostbyname
-- Looking for gethostbyname - found
-- Looking for connect
-- Looking for connect - found
-- Looking for remove
-- Looking for remove - found
-- Looking for shmat
-- Looking for shmat - found
-- Looking for IceConnectionNumber in ICE
-- Looking for IceConnectionNumber in ICE - found
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Looking for include file pthread.h
-- Looking for include file pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - not found.
-- Looking for pthread_create in pthreads
-- Looking for pthread_create in pthreads - not found
-- Looking for pthread_create in pthread
-- Looking for pthread_create in pthread - found
-- Found Threads: TRUE
-- Looking for _POSIX_TIMERS
-- Looking for _POSIX_TIMERS - found
-- Found Automoc4: /usr/bin/automoc4
-- Found Perl: /usr/bin/perl (found version "5.14.2")
-- Found Phonon: /usr/include
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Failed
-- Performing Test HAVE_FPIE_SUPPORT
-- Performing Test HAVE_FPIE_SUPPORT - Success
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL
-- Performing Test __KDE_HAVE_W_OVERLOADED_VIRTUAL - Success
-- Performing Test __KDE_HAVE_GCC_VISIBILITY
-- Performing Test __KDE_HAVE_GCC_VISIBILITY - Success
-- Found KDE 4.8 include dir: /usr/include
-- Found KDE 4.8 library dir: /usr/lib
-- Found the KDE4 kconfig_compiler preprocessor: /usr/bin/kconfig_compiler
-- Found automoc4: /usr/bin/automoc4
-- Found Qt-Version 4.8.2 (using /usr/bin/qmake)
-- Found X11: /usr/lib/i386-linux-gnu/libX11.so
-- Looking for getpeereid
-- Looking for getpeereid - not found
-- checking for module 'gtk+-2.0>=2.6'
-- found gtk+-2.0, version 2.24.10
** INFORMATION: Gtk2 LD_PRELOAD library will be built.
-- checking for module 'gtk+-3.0>=3.0'
-- found gtk+-3.0, version 3.4.2
** INFORMATION: Gtk3 LD_PRELOAD library will be built.
-- Found xgettext: /usr/bin/xgettext
** INFORMATION: Using installation prefix: /usr
-- Configuring done
-- Generating done
-- Build files have been written to: /home/pablo/Descargas/KGtk-0.11.0/build


2) $ make
Scanning dependencies of target kgtk2
[ 7%] Building C object gtk2/CMakeFiles/kgtk2.dir/kgtk.o
In file included from /home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:74:0:
/home/pablo/Descargas/KGtk-0.11.0/common/connect.h: In function ‘createSocketConnectionReal’:
/home/pablo/Descargas/KGtk-0.11.0/common/connect.h:121:5: warning: #warning "Using sloppy security checks" [-Wcpp]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c: In function ‘handleGtkFileChooserButtonClicked’:
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2600:58: warning: unused parameter ‘button’ [-Wunused-parameter]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c: In function ‘kgtk_g_module_check_init’:
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2744:49: warning: unused parameter ‘module’ [-Wunused-parameter]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c: At top level:
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2750:37: warning: ‘struct PR_LoadLibrary’ declared inside parameter list [enabled by default]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2750:37: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
Linking C shared library ../lib/libkgtk2.so
[ 7%] Built target kgtk2
Scanning dependencies of target kgtk3
[ 15%] Building C object gtk3/CMakeFiles/kgtk3.dir/__/gtk2/kgtk.o
In file included from /home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:74:0:
/home/pablo/Descargas/KGtk-0.11.0/common/connect.h: In function ‘createSocketConnectionReal’:
/home/pablo/Descargas/KGtk-0.11.0/common/connect.h:121:5: warning: #warning "Using sloppy security checks" [-Wcpp]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c: In function ‘handleGtkFileChooserButtonClicked’:
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2600:58: warning: unused parameter ‘button’ [-Wunused-parameter]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c: In function ‘kgtk_g_module_check_init’:
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2744:49: warning: unused parameter ‘module’ [-Wunused-parameter]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c: At top level:
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2750:37: warning: ‘struct PR_LoadLibrary’ declared inside parameter list [enabled by default]
/home/pablo/Descargas/KGtk-0.11.0/gtk2/kgtk.c:2750:37: warning: its scope is only this definition or declaration, which is probably not what you want [enabled by default]
Linking C shared library ../lib/libkgtk3.so
[ 15%] Built target kgtk3
Scanning dependencies of target kdialogd4_bin_automoc
Generating kdialogd.moc
[ 15%] Built target kdialogd4_bin_automoc
Scanning dependencies of target kdialogd4_bin
[ 23%] Building CXX object kdialogd4/CMakeFiles/kdialogd4_bin.dir/kdialogd4_bin_automoc.o
[ 30%] Building CXX object kdialogd4/CMakeFiles/kdialogd4_bin.dir/kdialogd.o
Linking CXX executable kdialogd4
[ 30%] Built target kdialogd4_bin
Scanning dependencies of target pofiles
[ 38%] Generating zh_CN.gmo
/home/pablo/Descargas/KGtk-0.11.0/kdialogd4/po/zh_CN.po: atención: El conjunto de caracteres "CHARSET" no es un nombre de codificación portátil.
La conversión de mensajes al conjunto de caracteres del usuario podría no funcionar.
[ 46%] Generating de.gmo
[ 53%] Generating fr.gmo
/home/pablo/Descargas/KGtk-0.11.0/kdialogd4/po/fr.po: atención: El conjunto de caracteres "CHARSET" no es un nombre de codificación portátil.
La conversión de mensajes al conjunto de caracteres del usuario podría no funcionar.
[ 61%] Generating es.gmo
/home/pablo/Descargas/KGtk-0.11.0/kdialogd4/po/es.po: atención: El conjunto de caracteres "CHARSET" no es un nombre de codificación portátil.
La conversión de mensajes al conjunto de caracteres del usuario podría no funcionar.
[ 69%] Generating ru.gmo
[ 76%] Generating cs.gmo
[ 84%] Generating pt_BR.gmo
[ 92%] Generating it.gmo
[100%] Generating en_GB.gmo
[100%] Built target pofiles


3) # make install
[ 7%] Built target kgtk2
[ 15%] Built target kgtk3
[ 15%] Built target kdialogd4_bin_automoc
[ 30%] Built target kdialogd4_bin
[100%] Built target pofiles
Install the project...
-- Install configuration: "RelWithDebInfo"
-- Installing: /usr/bin/kgtk-wrapper
-- Installing: /usr/lib/kgtk/libkgtk2.so
-- Installing: /usr/lib/kgtk/libkgtk3.so
-- Installing: /usr/lib/kde4/libexec/kdialogd4
-- Installing: /usr/share/locale/zh_CN/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/de/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/fr/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/es/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/ru/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/cs/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/pt_BR/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/it/LC_MESSAGES/kdialogd4.mo
-- Installing: /usr/share/locale/en_GB/LC_MESSAGES/kdialogd4.mo


4) Run with GIMP:
$ kgtk-wrapper gimp
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.
QDBusConnection: session D-Bus connection created before QCoreApplication. Application may misbehave.

(gimp:11336): Gtk-ERROR **: GTK+ 2.x symbols detected. Using GTK+ 2.x and GTK+ 3 in the same process is not supported
/usr/bin/kgtk-wrapper: línea 88: 11336 `trap' para punto de parada/seguimiento LD_PRELOAD=/usr/lib/kgtk/libk${toolkit}.so:$LD_PRELOAD "$@"
QSocketNotifier: Invalid socket 11 and type 'Read', disabling...


Reply to this

goto page: prev  ... 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.

resultmore




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

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

Copyright 2001-2014 KDE-Look.org Team  
All rights reserved. KDE-Look.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.