[ooo-build] How can I use quickstart tool without libvclplug_gtkli.so?

Petr Mladek pmladek at suse.cz
Fri Mar 19 05:44:20 PDT 2010


On Friday 19 March 2010, Xuedong Guo wrote:
> Yes, the libqstart_gtklx.so provides the Quickstarter functionality.
> Actually I found the Class ShutdownIcon defined in
> sfx2/source/appl/shutdownicon.cxx
> implements this functionality, which keeps OOo running on background, and
> monitors whether an interactive OOo session is opening.
> And in sfx2/source/appl/shutdowniconunx.cxx initialize the Quickstarter
> systray tool:
>
> void SAL_DLLPUBLIC_EXPORT plugin_init_sys_tray(){
>     //Singleton
>     ShutdownIcon *pShutdownIcon = ShutdownIcon::getInstance();
>     //some gtk codes, relating with libvclplug_gtklx.so
>     ......
>
>     // disable shutdown
>     pShutdownIcon->SetVeto( true );
>     pShutdownIcon->addTerminateListener();
> }
>
> If remove libvclplug_gtklx.so and comment these gtk codes, I can get
> quickstart functionality but without systray tool. It is actually faster
> when start OOo the second time.

Please, make sure that the process soffice.bin is really running when you quit 
OOo. The second start is always faster even without the quickstarter. It is 
because the libraries are still cached in memory...

> I try to start OOo with these gtk codes but some functions such as
> gtk_menu_new( ), gtk_tooltips_new( ),gtk_tooltips_set_tip( ) raise
> assertions like,
>
> (process:11041): GLib-GObject-WARNING **: invalid (NULL) pointer instance
>
> (process:11041): GLib-GObject-CRITICAL **: g_signal_connect_data: assertion
> `G_TYPE_CHECK_INSTANCE (instance)' failed

I am sorry. I am not familiar with the implementation. Others might help you 
better.

In each case, it might be possible to get the functionality (keep OOo running) 
without GUI => without the gtk functionality.

Well, you still need to solve the problem how to start the quickstarter 
instance when you login to the desktop (first start). The current solution 
links the qstart.desktop into ~/.config/autostart. GNOME starts applications 
mentioned in this dir when you login. I am not sure if this solution is 
supported by other window managers.

> It is strange that these gtk functions need libvclplug_gtklx.so. Maybe a
> KDE version of Quickstarter alse need a libvclplug_kdelx.so...

Yes, it would use it for the systray stull. Note the KDE3 is obsolete by KDE4. 
The KDE4 plugin is libvclplug_kde4lx.so.

> I tried oooqs2 but it didn't work...

I am not surprized. I had bad experience with it.


-- 
Best Regards,

Petr Mladek
software developer
---------------------------------------------------------------------  
SUSE LINUX, s. r. o.                        e-mail: pmladek at suse.cz
Lihovarská 1060/12                          tel: +420 284 028 952
190 00 Prague 9                             fax: +420 284 028 951
Czech Republic                              http://www.suse.cz/


More information about the ooo-build mailing list