Bug 702347 - Error in xdg-open script
Summary: Error in xdg-open script
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: xdg-utils
Version: 15
Hardware: All
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Rex Dieter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-05 12:21 UTC by Daniele Viganò
Modified: 2011-05-09 03:55 UTC (History)
2 users (show)

Fixed In Version: xdg-utils-1.1.0-0.6.20110505.fc15
Clone Of:
Environment:
Last Closed: 2011-05-09 03:55:42 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Diff between original and fixed script (258 bytes, patch)
2011-05-05 12:21 UTC, Daniele Viganò
no flags Details | Diff

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.


Note You need to log in before you can comment on or make changes to this bug.