KStandardDirs::kde_default function calls
Chris Cheney
ccheney at cheney.cx
Mon Jun 2 19:49:54 BST 2003
On Mon, Jun 02, 2003 at 01:01:20PM +0200, Stephan Kulow wrote:
> On Thursday 29 May 2003 10:08, Chris Cheney wrote:
> > Should anything be directly calling KStandardDirs::kde_default? I see
> Hmm, it makes sense to be used in calls to addResourceType, hardly
> anywhere else.
Ok, I see out of the packages I build there are no uses of kde_default
outside of addResourceType (afaict). However after looking a bit more
I see that some KDE apps appear to be directly accessing files with
hardcoded paths. There are probably more that I missed but below is what
I saw when looking in KDE_3_1_BRANCH. Shouldn't they be using directory
lookups, or in some other way not hardcoding the path? I also noticed
some paths are inside i18n'd strings, they probably should be split out
as well.
Chris
KDEBASE
-------
kappfinder/apps/Games/Arcade/cxhextris.desktop:Icon=/usr/share/icons/cxhextris.xpm
kappfinder/apps/Multimedia/bcast2000.desktop:Icon=/usr/share/icons/locolor/16x16/apps/bcast.xpm
khelpcenter/docmetainfo.cpp: kstd->addResourceType( "data", "share/apps/khelpcenter" );
KDELIBS
-------
kwallet/backend/kwalletbackend.cc: KGlobal::dirs()->addResourceType("kwallet", "share/apps/kwallet");
KDEMULTIMEDIA
-------------
midi/timidity.cpp:#define KMIDI_CONFIG_SUBDIR "/share/apps/kmidi/config"
noatun/library/equalizer.cpp: QString basedir=kapp->dirs()->localkdedir()+"/share/apps/noatun/eq.preset/";
KDENETWORK
----------
kppp/convlog.tcl:foreach i [glob -nocomplain ~/.kde/share/apps/kppp/Log/*-199?] {
ksirc/puke/test.pl:$pp->setPixmap("/opt/kde/share/icons/ksirc.gif");
ksirc/puke/test.pl: $pf2->insertPixmap("/opt/kde/share/icons/ksirc.gif", -1);
lanbrowsing/lisa/netmanager.cpp: tmpFilename+=MyString("/.kde/share/config/")+tmpBase;
lanbrowsing/lisa/netmanager.cpp: tmpFilename+=MyString("/share/config/")+tmpBase;
KDEPIM
------
kalarmd/testalarmdlg.cpp: a->setAudioFile( "/opt/kde/share/apps/korganizer/sounds/spinout.wav" );
korganizer/korganizerIn.in:$outfile .= "share/apps/korganizer/income/";
kpilot/kpilot/kpilot.cc: CSL1("share/apps/kpilot/DBBackup"));
More information about the kde-core-devel
mailing list