[packagekit] Run pkclient action from thread

Matthias Klumpp matthias at nlinux.org
Mon Apr 19 07:53:22 PDT 2010


On Mon, 19 Apr 2010 06:23:38 -0700 (PDT), Daniel Nicoletti
<dantti85-pk at yahoo.com.br> wrote:
>>With a Qt4 GUI, the Qt application does - of course - not 
>> call g_type_init(), so I didn't get any error.
> 
> You didn t get any error because you are witting a Qt4 GUI?
> If so there is a Qt lib already just in case you don t know
> (and a kde frontend :P )
Yes, I know :-P
I write a generic software manager for Linux, which scans all available
software on a distribution and offers uninstallation. The (un)installer can
handle LOKI-setups (such as Google Earth uses), Mojo-Installations,
Autopackage.org setups and native packages through PackageKit.
It also provides a new setup-format, which works on all Linux distributions
(- it should work), that provides features like openSUSEs 1-Klick-Install
does and many other stuff.
Every action is done through one library, which depends on GLib. (nearly
every app on the Linux desktop relies somehow on glib, so even the Qt4 GUI
can depend on it) This means I can't use the Qt implementation because then
I would have a Qt4 dependency of the lib.
At time I am the only active developer of this project, most of the others
are inactive cause of personal reasons. If I have a little more time and if
I learned some more Qt, I will re-implement the Qt4-GUI in C++. The current
one, developed in Pascal, uses the same graphical interface as the GTK+-one
does through a GUI abstraction layer. This means I only have to write all
code once and can compile it for Qt and GTK+ without the need to change any
line.
Without the need to create two GUIs, I can focus on more important things.
But using the abstraction means I can't use all the cool features Qt4
provides. I can only use stuff which is present in GTK2 and Qt4. (If the
project is successful, I will reimplement it in C++, I think. If not, then
it was a nice experiment which brought lots of fun. (and frustration,
sometimes))
Oo... I'm writing far too much off-topic here.
Kind regards
  Matthias




More information about the PackageKit mailing list