[dash] applications with capital letters in their desktop file name cannot be launched

Bug #723604 reported by Andrew Hayzen
36
This bug affects 4 people
Affects Status Importance Assigned to Milestone
The Charlotte project
Fix Released
High
Alex Chiang
unity-2d
Fix Released
High
Olivier Tilloy

Bug Description

Hi

Description: Ubuntu 10.10
Release: 10.10
unity-2d:
  Installed: 0.4-0ubuntu1~bzr405
  Candidate: 0.4-0ubuntu1~bzr405
  Version table:
 *** 0.4-0ubuntu1~bzr405 0
        500 http://ppa.launchpad.net/unity-2d-team/unity-2d-daily/ubuntu/ maverick/main i386 Packages
        100 /var/lib/dpkg/status

What Happened:
When I click on some applications in unity (from the main applications menu [dash]) it doesn't actually start the application. I have to then manually run the application from terminal.
Some examples of this:
Search And Rescue - Command: SearchAndRescue
xplanetFX - Command: xplanetFX

What I expected to happen:
I expected unity to start the application as normal.

A side note: It wouldn't be to do with the capital letters in the commands would it?

Also SearchAndRescue and xplanetfx are available from the USC, if you need to test them.

Hope this can be fixed soon.

Andy

Related branches

Revision history for this message
Florian Boucault (fboucault) wrote :

Andy, this bug report is fantastic. You absolutely nailed it with "It wouldn't be to do with the capital letters in the commands would it?"

Programs with capital letters in the names of their .desktop files are not launchable because of some bug in the backend layers:
- xplanetFX
- Search And Rescue
- fbreader

Changed in unity-2d:
importance: Undecided → High
status: New → Confirmed
summary: - Unity-2d doesn't start some applications
+ [dash] applications with capital letters in their desktop file name
+ cannot be launched
tags: added: maverick-delta
Changed in unity-2d:
milestone: none → 3.8
tags: added: charlotte-backport-needed
Changed in charlotte:
status: New → Confirmed
Revision history for this message
Olivier Tilloy (osomon) wrote :

The cause of the problem is not in the backends (place daemons, libdee, …), but in Unity-2d itself.

For e.g. SearchAndRescue, the backend correctly return "application://SearchAndRescue.desktop" for the desktop file name. However, at the QML level, this value is assigned to a property with type url (QUrl), and this is where the case is lost. According to the documentation (http://doc.qt.nokia.com/latest/qurl.html#FormattingOption-enum):

« Note that the case folding rules in Nameprep, which QUrl conforms to, require host names to always be converted to lower case, regardless of the Qt::FormattingOptions used. »

In this case, "application" is the scheme and "SearchAndRescue.desktop" is considered as the host name, thus being converted to lower case.

This can be fixed by changing the type of the property to string instead of url.

Changed in unity-2d:
assignee: nobody → Olivier Tilloy (osomon)
status: Confirmed → In Progress
Changed in unity-2d:
status: In Progress → Fix Committed
Revision history for this message
Florian Boucault (fboucault) wrote :

Backported in Maverick branch.

Revision history for this message
Alex Chiang (achiang) wrote :

Backported to Charlotte, confirmed that an app like FBReader launches successfully from dash.

Changed in charlotte:
assignee: nobody → Alex Chiang (achiang)
milestone: none → m4-rc1
importance: Undecided → High
status: Confirmed → Fix Committed
Revision history for this message
Joaquin (jknvv13) wrote : Re: [Bug 723604] Re: [dash] applications with capital letters in their desktop file name cannot be launched

Fixed.
PlayOnLinux working. :)

2011/3/17 Alex Chiang <email address hidden>

> Backported to Charlotte, confirmed that an app like FBReader launches
> successfully from dash.
>
> ** Changed in: charlotte
> Assignee: (unassigned) => Alex Chiang (achiang)
>
> ** Changed in: charlotte
> Milestone: None => m4-rc1
>
> ** Changed in: charlotte
> Importance: Undecided => High
>
> ** Changed in: charlotte
> Status: Confirmed => Fix Committed
>
> --
> You received this bug notification because you are a direct subscriber
> of a duplicate bug (729082).
> https://bugs.launchpad.net/bugs/723604
>
> Title:
> [dash] applications with capital letters in their desktop file name
> cannot be launched
>
> Status in The Charlotte project:
> Fix Committed
> Status in Unity 2D:
> Fix Committed
>
> Bug description:
> Hi
>
> Description: Ubuntu 10.10
> Release: 10.10
> unity-2d:
> Installed: 0.4-0ubuntu1~bzr405
> Candidate: 0.4-0ubuntu1~bzr405
> Version table:
> *** 0.4-0ubuntu1~bzr405 0
> 500 http://ppa.launchpad.net/unity-2d-team/unity-2d-daily/ubuntu/maverick/main i386 Packages
> 100 /var/lib/dpkg/status
>
> What Happened:
> When I click on some applications in unity (from the main applications
> menu [dash]) it doesn't actually start the application. I have to then
> manually run the application from terminal.
> Some examples of this:
> Search And Rescue - Command: SearchAndRescue
> xplanetFX - Command: xplanetFX
>
> What I expected to happen:
> I expected unity to start the application as normal.
>
> A side note: It wouldn't be to do with the capital letters in the
> commands would it?
>
> Also SearchAndRescue and xplanetfx are available from the USC, if you
> need to test them.
>
> Hope this can be fixed soon.
>
> Andy
>
> To unsubscribe from this bug, go to:
> https://bugs.launchpad.net/charlotte/+bug/723604/+subscribe
>

Revision history for this message
Sean Feole (sfeole) wrote :

tested on build 20110321-0, moved FBreader to the dash and launched, application started up.

tags: added: cqa-verified
Alex Chiang (achiang)
Changed in charlotte:
status: Fix Committed → Fix Released
Changed in unity-2d:
status: Fix Committed → Fix Released
Sean Feole (sfeole)
tags: added: cqa-verified-gm
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.