[Bug 288389] New: kde-open breaks xdg-open with incorrect exit status.

Peter Brett peter at peter-b.co.uk
Wed Dec 7 09:41:27 GMT 2011


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

           Summary: kde-open breaks xdg-open with incorrect exit status.
           Product: kde
           Version: unspecified
          Platform: Fedora RPMs
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: unassigned-bugs at kde.org
        ReportedBy: peter at peter-b.co.uk


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

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Unassigned-bugs mailing list