Creating a desktop shortcut

Andre Rodovalho andre.rodovalho at gmail.com
Wed Sep 18 21:18:42 UTC 2013


I use like this:

Exec=lxterminal --command='sudo apt-get upgrade'


2013/9/18 John Hupp <lubuntu at prpcompany.com>

> I want to create a desktop shortcut for a command that I ordinarily run in
> an lxterm window thus:
>
> sudo ltsp-update-image --cleanup /
>
> I tried a standard desktop shortcut with the relevant line:
>
> Exec=sudo ltsp-update-image --cleanup /
>
> but running the shortcut produces no results.
>
> I also tried modifying that to:
>
> Exec=gksudo ltsp-update-image --cleanup /
>
> But likewise running that produces no results.
>
> ------------------------------**-----------------
>
> I also tried creating a bash script with the contents:
>
> #!/bin/bash
> sudo ltsp-update-image --cleanup /
>
> And alternatively with line 2:
>
> gksudo ltsp-update-image --cleanup /
>
> and simply also with line 2:
>
> ltsp-update-image --cleanup /
>
> Trying to run any of those versions, it prompts to Execute or to Execute
> in Terminal, but none of those choices runs the update program or even
> prompts
> for a password.
>
> What am I doing wrong?
>
>
> --
> Lubuntu-users mailing list
> Lubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/**
> mailman/listinfo/lubuntu-users<https://lists.ubuntu.com/mailman/listinfo/lubuntu-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/lubuntu-users/attachments/20130918/eb02e516/attachment-0001.html>


More information about the Lubuntu-users mailing list