Unable to launch commands with white space in it

Bug #478412 reported by Raphael Jolivet
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
deskbar-applet (Ubuntu)
New
Undecided
Unassigned

Bug Description

Binary package hint: deskbar-applet

I have installed a third party applicationwhich had the good idea to name their binary with a space in it.
When I try to launch it via the deskbar Applet, it finds it corectly (and displays the space), but it is unable to execute it.

I get something like (I have it in french actually) :
"Unable to execute the program : 'foo bar' "

How to reproduce
==============

1) Create a dummy "foo bar" program
> cd /usr/bin
> sudo echo "echo hello" > "foo bar"
> sudo chmod +x "foo bar"

2) Try to launch it via the deskbar applet.

Revision history for this message
Erik (ubuntu-erikdokter) wrote :

I have sort of the same problem. I am unable to use the following command in the deskbar: virtualbox --startvm "Windows 7"
The following error pops up: There is no virtual machine named "Windows.
It is possible to run the command from the terminal or by using ALT+F2.

It appears that deskbar is trying to split the command on spaces (deskbar/handlers/programs.py:240 perhaps), causing it to break.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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