Bug 375166 - Do not use hardcoded path for kdeglobals
Summary: Do not use hardcoded path for kdeglobals
Status: RESOLVED FIXED
Alias: None
Product: kajongg
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Wolfgang Rohdewald
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-01-17 05:44 UTC by Burkhard Lück
Modified: 2017-01-21 00:09 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Burkhard Lück 2017-01-17 05:44:05 UTC
recent kajongg master kf5 build from sources

kdestub.py has this line
        conf = KConfig('~/.config/kdeglobals')

running kajongg from konsole I get this error:
[snip]
  File "/home/kdeframeworks/kf5/share/kajongg/kdestub.py", line 1155, in initStyle
    iconStyle = conf.group('Icons').readEntry('Theme').lower()
AttributeError: 'NoneType' object has no attribute 'lower'

reason for this error:
ls ~/.config/kdeglobals
/home/kdeframeworks/.config/kdeglobals: No such file or directory
kdeframeworks@tuxedo:~/src$ ls ~/.config5/kdeglobals
/home/kdeframeworks/.config5/kdeglobals

using qtpaths the correct file is found:
$ qtpaths --paths GenericConfigLocation
/home/kdeframeworks/.config5:/home/kdeframeworks/kf5/etc/xdg::/etc/xdg

see also https://techbase.kde.org/Projects/Documentation/KDE_(health_table)#Using_paths