KStandardDirs and Autopackage

Waldo Bastian bastian at kde.org
Wed Apr 14 17:28:42 BST 2004


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

On Wed April 14 2004 17:19, Arend van Beelen jr. wrote:
> As Leo suggested, I will create a first patch so you can better see how it
> is supposed to work.
>
> > Where can I find BinReloc?
>
> http://autopackage.org/docs/binreloc/

Ah, I see, basically we could just include br_locate() in kstandardsdir.cpp, 
strip it a bit and then add it to our prefixes, just as we do with KDEDIR and 
__KDE_EXECPREFIX. Seems simple/small enough.

> > How do you make sure that the KDE runtime environment knows about this
> > applications, its icons, its mimetypes, etc.. ?
>
> It doesn't. The most important point is that the application can run on its
> own no matter where it's installed. Of course, the installation script
> should then make sure the .desktop files and icons are registered with KDE,
> probably by making symlinks.

We could provide a tool to "check if this file is located where the KDE 
runtime environment can find it and if not, create a symlink to it under 
$KDEHOME / $XDG_DATA_HOME"

e.g.
	kde-check-install /home/bastian/MyNewApp xdgdata-apps myapp.desktop
could check if myapp.desktop is found anywhere in 
$(kde-config --path xdgdata-apps) and if not create a link from 
$XDG_DATA_HOME/applications/myapp.desktop 
to /home/bastian/MyNewApp/share/applications/myapp.desktop

Cheers,
Waldo
- -- 
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
^ bastian at kde.org | Is your software SUSE LINUX READY? | bastian at suse.com
^<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQFAfWa6N4pvrENfboIRArPDAJ9vHzMYyZxlXWGQ58kBbppSrH6wJgCfYfO8
E3yL4glzHfrLIG87ErBsVBM=
=E04x
-----END PGP SIGNATURE-----




More information about the kde-core-devel mailing list