Bug 702347

Summary: Error in xdg-open script
Product: [Fedora] Fedora Reporter: Daniele ViganĂ² <dennyvatwork>
Component: xdg-utilsAssignee: Rex Dieter <rdieter>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: pertusus, rdieter
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xdg-utils-1.1.0-0.6.20110505.fc15 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-09 03:55:42 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
Diff between original and fixed script none

Description Daniele ViganĂ² 2011-05-05 12:21:14 UTC
Created attachment 497059 [details]
Diff between original and fixed script

Description of problem:

There is an error in /usr/bin/xdg-open script at line 379, two semicolons are missing:

374 if [ x"$DE" = x"" ]; then
375      # fallback to checking $DESKTOP_SESSION
376      case "$DESKTOP_SESSION" in
377         gnome)
378           DE=gnome;
379         LXDE)
380           DE=lxde;
381           ;;
382         xfce|xfce4)
383           DE=xfce;
384           ;;
385      esac
386  fi

Version-Release number of selected component (if applicable):

Name        : xdg-utils
Arch        : noarch
Version     : 1.1.0
Release     : 0.5.20110504.fc15
Size        : 251 k
Repo        : installed
From repo   : updates-testing

How reproducible:

Always

Steps to Reproduce:
1. Launch xdg-open from terminal
  
Actual results:
[root@mini ~]# /usr/bin/xdg-open
/usr/bin/xdg-open: line 379: syntax error near unexpected token `)'
/usr/bin/xdg-open: line 379: `         LXDE)'

Expected results:

[root@mini ~]# /usr/bin/xdg-open
xdg-open ? opens a file or URL in the user's preferred application
Synopsis
xdg-open { file | URL }
xdg-open { --help | --manual | --version }
Use 'man xdg-open' or 'xdg-open --manual' for additional info.

Additional info:
Is easy to fix: add ;; at line 379 just after DE=gnome;

Comment 1 Fedora Update System 2011-05-05 15:37:52 UTC
xdg-utils-1.1.0-0.6.20110505.fc15 has been submitted as an update for Fedora 15.
https://admin.fedoraproject.org/updates/xdg-utils-1.1.0-0.6.20110505.fc15

Comment 2 Fedora Update System 2011-05-05 21:51:17 UTC
Package xdg-utils-1.1.0-0.6.20110505.fc15:
* should fix your issue,
* was pushed to the Fedora 15 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing xdg-utils-1.1.0-0.6.20110505.fc15'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/xdg-utils-1.1.0-0.6.20110505.fc15
then log in and leave karma (feedback).

Comment 3 Fedora Update System 2011-05-09 03:55:33 UTC
xdg-utils-1.1.0-0.6.20110505.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.