USC selectively installs packages

Asked by Liam

When I launch USC from the shortcut in the unity menu in 12.04 and browse for a package I can't install it. I get to the install button and click it but nothing happens.

When I launch USC using the command "sudo software-centre" from a terminal and browse for a package then clicking the install button works.

I also notice that using the shortcut does not allow me to see packages that can be purchased wheres using the terminal approach I can see them.

I'm guessing there is an issue in how the shortcut launcher is launching USC. I also have this problem for synaptic.
Is there a way I can edit the shortcut launcher details to fix this?

If I go into the dash and open up "main menu" then navigate to Sytem Tools>Administration>Ubuntu Software Centre>Properties, the shortcut for USC is "/usr/bin/software-center %u"

Would launching the shortcut using "gksu /usr/bin/software-center %u" work? And is this the correct way to edit how shortcuts are launched?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu software-center Edit question
Assignee:
No assignee Edit question
Solved by:
actionparsnip
Solved:
Last query:
Last reply:
Revision history for this message
Best actionparsnip (andrew-woodhead666) said :
#1

Use gksudo for GUI apps, not sudo.

Edittinig the /usr/share/applications/ubuntu-software-center.desktop file as you say will work

Revision history for this message
Liam (bell-liam) said :
#2

Perfect! I was clearly editing the wrong shortcut launcher beforehand!

Editing the one in the location you indicated such that:

Exec=gksudo /usr/bin/software-center %u

has solved the issue! Where it did not contain the gksudo before I edited it.

Thank you for the quick response.

Revision history for this message
Liam (bell-liam) said :
#3

Thanks actionparsnip, that solved my question.