Skip to content

Commit

Permalink
Ensure that sharedir paths always ends with a slash character.
Browse files Browse the repository at this point in the history
The canonicalPath() function always strips the trailing slash
character. We need to add it back because of the way paths are built
later.
  • Loading branch information
linuxdude42 committed Jun 29, 2023
1 parent 105e64e commit bc19058
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mythtv/libs/libmythbase/mythdirs.cpp
Expand Up @@ -123,6 +123,7 @@ void InitializeMythDirs(void)

if (sharedir.isEmpty())
sharedir = confdir;
sharedir = QDir(sharedir).canonicalPath() + "/";

#elif defined(Q_OS_ANDROID)
if (installprefix.isEmpty())
Expand Down

0 comments on commit bc19058

Please sign in to comment.