Installing an App into K-Menu

Waldo Bastian bastian at kde.org
Thu May 22 12:30:54 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thursday 22 May 2003 12:32, Martin Koller wrote:
> On Tuesday 20 May 2003 19:56, Martin Koller wrote:
> > Hi all,
> >
> > what is the correct way in a program installation script to also register
> > this new application into the K-Menu structure?
> >
> > I tried to create a desktop entry file into ~/.kde/share/applnk
> > but the new entries (in fact I created a directory and in it two desktop
> > files) appear only if I restart kicker. (using KDE 3.1.1 on RedHat)
> >
> > Is that a correct behaviour ?
> > Shall I somehow add a dcop call (how?) to restart kicker after adding a
> > new entry ?
>
> I've now seen, that also a restart does not help directly - but when I wait
> a few seconds before looking inside the K-menu, then I see the new entry.
> Seems that there is some timeout scanning the directory !?

Yes, there is some delay. There is a small timeout and the ksycoca database 
needs to be updated which takes a few seconds.

If you add the following dcop call to your script:
	dcop kded kbuildsycoca recreate

The timeout is shortened a little bit and you can be sure that the database is 
up to date when the call returns.

Cheers,
Waldo
- -- 
bastian at kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian at suse.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE+zLTuN4pvrENfboIRAlVsAKCf2iLFI/80960T7DDp9wPEmH3tdgCfT4RR
JSNsHEJb2moYO+o4ddwScbc=
=VOpo
-----END PGP SIGNATURE-----

___________________________________________________
This message is from the kde mailing list.
Account management:  http://mail.kde.org/mailman/listinfo/kde.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.




More information about the kde mailing list