Wingpanel is unable to execute alternative launcher applications with arguments

Bug #960650 reported by Lee Hyde
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Wingpanel
Fix Released
Wishlist
Fabian Thoma

Bug Description

After experiencing a bug with Slingshot (see bug #960536) I decided to temporarily switch Wingpanel to use Cardapio as its launcher. Changing the appropriate gsettings string to 'cardapio' does launch cardapio, but centered on the screen rather than adjacent to Wingpanel. Substituting 'cardapio show-near-mouse' however does not launch Cardapio adjacent to Wingpanel (or the mouse cursor rather), but rather opens /usr/share/applications in the default file manager.

Wingpanel seems to suffer the same shortcomings as Cerbere when it comes to executing programmes with arguements (see bug #905434). Unless I'm missing the correct syntax? Assuming I'm not, then this should be rectified, in all elementary programmes as appropriate.

Related branches

Revision history for this message
Steve Benchik (jellofello112) wrote :

Wouldn't the command be
"cardapio-show-near-mouse" instead of "cardapio show-near-mouse"? I think you need a hyphen between cardapio and show.

Revision history for this message
Lee Hyde (anubeon) wrote :

I don't think so, in fact I've just tested and no, it doesn't work that way. The show-near-mouse argument is precisely that, an argument. Rather than a separate and distinct executable, which is what would be called using your suggestion.

It is a little odd as arguments go; convention would suggest "cardapio --show-near-mouse" rather than "cardapio show-near-mouse". Is that what you were getting at? Regardless, I've tried this variation too, to no avail.

Revision history for this message
Fabian Thoma (fabianthoma) wrote :

I will look into this once we got Luna out the door and the stress level is a bit lower ;)

Changed in wingpanel:
status: New → Triaged
importance: Undecided → Wishlist
Revision history for this message
Sergey "Shnatsel" Davidoff (shnatsel) wrote :

Right now you can create the following file:
"#!/bin/sh
cardapio show-near-mouse"
save it as "cardapio-show-near-mouse" in your home folder
then run the following:
$ sudo cp cardapio-show-near-mouse /usr/bin
$ sudo chmod +x /usr/bin/cardapio-show-near-mouse

Changed in wingpanel:
status: Triaged → In Progress
assignee: nobody → Fabian Thoma (agent00tai)
Cody Garver (codygarver)
Changed in wingpanel:
status: In Progress → Fix Committed
milestone: none → luna-beta1
Revision history for this message
Victor Martinez (victored) wrote :

Fabian, I think we should move your fix from Wingpanel to Granite.Services.System, since the execute_command() function is still misleading.

Revision history for this message
Michael (midefran) wrote :

Has anyone noticed that using the hot keys super+space the launcher will open fine in Wingpanel?

Changed in wingpanel:
status: Fix Committed → Fix Released
no longer affects: granite
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.