QLE creates actions with invalid names

Bug #1403450 reported by arty on 2014-12-17
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QLE Unity Quicklist editor
Undecided
Unassigned

Bug Description

I've just installed the recent QLE from the PPA and tried to create a new entry with the name "Test Profile". It did not appear instantly in the quicklist, so I have tried to use `desktop-file-install` tool for it. It has reported me the following errors:

~/.local/share/applications/firefox.desktop: error: value "NewWindow;NewPrivateWindow;Test Profile;" for key "Actions" in group "Desktop Entry" contains invalid action identifier "Test Profile", only alphanumeric characters and '-' are allowed
~/.local/share/applications/firefox.desktop: error: file contains group "Desktop Action Test Profile", which has an invalid action identifier, only alphanumeric characters and '-' are allowed
Error on file "firefox.desktop": Failed to validate the created desktop file

I assume the QLE should create use valid action names.

Jacob Vlijm (vlijm) wrote :

I am not sure how you created the entry. The editor does what you tell it to. The name "Test Profile" seems fine however, and does not raise an error here. could you post the lines starting with:

Actions= etc

and the corresponding shortcut group of:

[Desktop Action Test Profile]

and tell me how you created the shortcut (basic options/advanced options etc)?

Jacob Vlijm (vlijm) on 2014-12-17
Changed in jonb.homelauncher:
status: New → Incomplete
arty (me-arty) wrote :

I just reproduced it on Ubuntu 14.10 this way:

1) Start QLE
2) Select Thunderbird launcher item
3) Click "Basic options" button
4) Enter "test test" as name, "test" as command
5) Save and close

It has generated following section in thunderbird.desktop:

[Desktop Action test test]

This is invalid section name, only 2 spaces are allowed between brackets:

/tmp/thunderbird.desktop: error: file contains group "Desktop Action test test", which has an invalid action identifier, only alphanumeric characters and '-' are allowed

It could only be

[Desktop Action test-test]

Jacob Vlijm (vlijm) wrote :

The strange thing is..
I tried with:

test test test

without an error!

Jacob Vlijm (vlijm) wrote :

Will try tonight with 14.10 (the above was 14.04)

Jacob Vlijm (vlijm) wrote :

arty, I cannot reproduce the problem. On 14.10, I tried "test test test test test test " with no error whatsoever. At the same time, I am curious about the program you mention (`desktop-file-install`) that gives the error. I think it is incorrect.

Jacob Vlijm (vlijm) on 2014-12-17
Changed in jonb.homelauncher:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers