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

Wolfgang Bauer <wba...@tmo.at> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|WORKSFORME                  |---
             Status|RESOLVED                    |REOPENED
                 CC|                            |wba...@tmo.at

--- Comment #7 from Wolfgang Bauer <wba...@tmo.at> ---
I don't think this is distribution specific.

IMHO, this code in ksmserver/startup.cpp seems to generate an invalid QUrl, if
the path in the settings doesn't contain a scheme (which it doesn't if you
select a local file in the settings module):
        QUrl soundURL = QUrl(soundFilename); // this CTOR accepts both absolute
paths (/usr/share/sounds/blabla.ogg and blabla.ogg) w/o screwing the scheme
        if (soundURL.isRelative() && !soundURL.toString().startsWith('/')) { //
QUrl considers url.scheme.isEmpty() == url.isRelative()
            soundURL =
QUrl::fromLocalFile(QStandardPaths::locate(QStandardPaths::GenericDataLocation,
QStringLiteral("sounds/") + soundFilename));

(the QUrl constructor expects an absolute or relative *URL*, and doesn't
support local paths, it should probably use QUrl::fromUserInput() instead of
QUrl()...)

It works if you manually edit the config file (~/.config/plasma_notifyrc) and
prepend a "file://" to the file path.
I.e. something like:
[Event/startkde]
Action=Sound
Sound=file:///home/test/Desktop/login.ogg

For some reason it seems to work with Phonon's vlc backend without this, but
not with gstreamer.

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

Reply via email to