KStandardDirs and documentation on trunk
Alex Merry
huntedhacker at tiscali.co.uk
Sat May 19 22:15:49 BST 2007
On Saturday 19 May 2007, Philip Rodrigues wrote:
> Hi,
> I'm trying to work out what technical things need to be done to make
> sure the toolchain for creating/viewing documentation is ready in KDE
> 4. The first problem I've noticed is that the help:/ ioslave calls
> KGlobal::dirs()->resourceDirs("html") to find out where the
> documentation is stored, and gets an empty QStringList back. A few
> other people have confirmed this on different systems. I didn't
> understand the KStandardDirs code enough to try to fix this, but if I
> manually
> insert "KDEDIR/share/doc/HTML" into the QStringList, the ioslave
> works almost perfectly.
I've figured out why: KStandardDirs is never told about the "html"
resource.
KStandardDirs::kde_default("html") will return "share/doc/HTML",
but "html" isn't listed in the types that
KStandardDirs::addKDEDefaults() adds resource types for.
Despite the claims to the contrary in the documentation for
KStandardDirs::addResourceType(), not all the standard resource paths
returned by kde_default() are added by addKDEDefaults().
Should all the standard directories returned by kde_default() be added
by addKDEDefaults()? If so, I can do that.
Alex
--
KDE: http://www.kde.org
Ubuntu/Kubuntu: http://www.ubuntu.org http://www.kubuntu.org
Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20070519/6bd20b38/attachment.sig>
More information about the kde-core-devel
mailing list