Version: unspecified (using KDE 4.7.3) OS: Linux According to "man xdg-open", xdg-open is supposed to exit with non-zero exit status on failure. However, when using kde-open, it exits with status 0 all the time. This is because kde-open does not provide feedback via its exit status on failure. This breaks applications that rely on xdg-open to launch viewer applications appropriate to the current desktop environment. This is a defect in kde-open which should be fixed. xdg-open's behaviour cannot be restored without changes to kde-open. Reproducible: Always Steps to Reproduce: 1. From KDE, run Konsole. 2. Run: xdg-open /path/to/missing/file; echo "result = $?" 2. Run: kde-open /path/to/missing/file; echo "result = $?" Actual Results: result = 0 result = 0 Expected Results: result = 2 result = <non-zero> See also: https://bugzilla.redhat.com/show_bug.cgi?id=760748
Git commit e6e6fb53419ec212ccae083162999d66e7d5663b by David Faure. Committed on 08/12/2011 at 23:18. Pushed by dfaure into branch 'master'. Fix kde-open exit code FIXED-IN: 4.8 BUG: 288389 M +4 -5 kioclient/kioclient.cpp http://commits.kde.org/kde-runtime/e6e6fb53419ec212ccae083162999d66e7d5663b