[Bug 168968] External programs for notifications are not executed when absolute path is given

Michael Pyne mpyne at purinchu.net
Sat Aug 16 23:50:04 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=168968         
mpyne purinchu net changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ogoffart kde org
             Status|UNCONFIRMED                 |NEW
      everconfirmed|0                           |1



------- Additional Comments From mpyne purinchu net  2008-08-16 23:50 -------
The problem is that the KNotify config widget stores a path as a KUrl.  KUrlRequester is nice and simply returns the text entered into the line edit if it is invalid.  But if it is a path or something that looks like a path it turns it into a real URL.  Which means that file:// gets prepended to the path when saved in the config file.

When KNotify later tries to execute that path /bin/sh will fail to do so since it is expecting a path and not a URL.

The way to fix this is either to store the path to the program as a path and not a URL or to have KNotify convert the URL to a path beforehand.  I will attach a patch that does the latter but I will leave the fix up to what Olivier would like to do.


More information about the Kdelibs-bugs mailing list