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

--- Comment #3 from Tuomas Nurmi <tuo...@norsumanageri.org> ---
Okay, thank you for the debug output!
There are multiple hints of path issues there, but especially this line is
quite telling:
amarok:         file  "/DefaultPlaylistLayouts.xml" does not exist

It should try to open something like
"/usr/share/amarok/data/DefaultPlaylistLayouts.xml", but it tries to search the
playlist layout file from system root instead - and probably other data, too.

in source code, the directory is constructed as follows:
const QString dataLocation =
QStandardPaths::locate(QStandardPaths::GenericDataLocation,                    
                              QStringLiteral("amarok/data"),
QStandardPaths::LocateDirectory);
QString configFile = dataLocation +
QStringLiteral("/DefaultPlaylistLayouts.xml");
The QStandardPaths::locate "Returns the absolute path to the first file or
directory found, otherwise returns an empty string." and
QStandardPaths::GenericDataLocation on Linux systems maps possibly to
"~/.local/share", "/usr/local/share", "/usr/share" according to Qt docs
(although they also note "The paths above should not be relied upon")

So it seems that /usr/share/amarok/data/ nor /usr/local/share/amarok/data/
don't exist. CMake installs the relevant data files under KDE_INSTALL_DATADIR,
which by default should be empty and default to /usr/share or /usr/local/share,
I think. Did you happen to use any exotic custom path settings when doing the
initial cmake configuration for the build?

Trying a new build from completely fresh build dir might be a good thing to try
(if you didn't already)
mkdir amarok-build-new && cd amarok-build-new && cmake ../amarok
-DCMAKE_INSTALL_PREFIX=`kf5-config --prefix && make && sudo make install

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

Reply via email to