mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-14 11:21:02 +00:00
Check for KDE 5 proxy first and then KDE 4
Don't look for kde4-config in case a KDE 5 user still has it installed.
This commit is contained in:
parent
bd55c2ef8f
commit
18f20d592f
1 changed files with 5 additions and 7 deletions
|
|
@ -542,14 +542,12 @@ def get_kde_config_dir():
|
|||
if not home:
|
||||
log.debug(LOG_CHECK, "KDEHOME and HOME not set")
|
||||
return
|
||||
if shutil.which("kde4-config"):
|
||||
kde_config_dir = os.path.join(home, ".kde4", "share", "config")
|
||||
else:
|
||||
# KDE 5
|
||||
kde_config_dir = os.path.join(home, ".config")
|
||||
kde_config_dir = os.path.join(home, ".config")
|
||||
if not os.path.exists(kde_config_dir):
|
||||
log.debug(LOG_CHECK, "%s does not exist" % kde_config_dir)
|
||||
return
|
||||
kde_config_dir = os.path.join(home, ".kde4", "share", "config")
|
||||
if not os.path.exists(kde_config_dir):
|
||||
log.debug(LOG_CHECK, "%s does not exist" % kde_config_dir)
|
||||
return
|
||||
return kde_config_dir
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue