https://bugs.kde.org/show_bug.cgi?id=375166

            Bug ID: 375166
           Summary: Do not use hardcoded path for kdeglobals
           Product: kajongg
           Version: unspecified
          Platform: Other
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: wolfg...@rohdewald.de
          Reporter: lu...@hube-lueck.de
                CC: kde-games-b...@kde.org
  Target Milestone: ---

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

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to