Linux Lite Forums
Open as Administrator for a panel launcher/icon - Printable Version

+- Linux Lite Forums (https://www.linuxliteos.com/forums)
+-- Forum: General (https://www.linuxliteos.com/forums/forumdisplay.php?fid=4)
+--- Forum: On Topic (https://www.linuxliteos.com/forums/forumdisplay.php?fid=14)
+--- Thread: Open as Administrator for a panel launcher/icon (/showthread.php?tid=2181)



Open as Administrator for a panel launcher/icon - torreydale - 09-10-2015

I have a desktop icon/launcher that I've created.  It runs the way I need it to, but I have to right click and choose Open as Administrator.  I prefer a clean desktop, so I'd like to move this icon to the panel instead.

I have done that, but now I don't know how to choose "Open as Administrator" on an quick launch icon that is the panel. 

Is there a workaround for this?


Re: Open as Administrator for a panel launcher/icon - rokytnji - 09-10-2015

gparted-pkexec works for me for my gparted launcher in taskbar. It prompts for a password when hit.


Re: Open as Administrator for a panel launcher/icon - torreydale - 09-10-2015

This command works when I put it in a terminal:
Code:
sudo openvpn --config /home/torrey/Downloads/client.ovpn

As a panel launcher, nothing pops up.  Here's how the panel launcher is currently setup:
[Image: prMLtHh.png]


This is how the desktop launcher is set up.  When I right click on it and select Open as Administrator, it works.  But remember, I'm trying to remove this desktop launcher and would prefer to use a panel launcher instead.
[Image: Cv6GvfQ.png]


Re: Open as Administrator for a panel launcher/icon - LL-user - 09-10-2015

Hi torreydale,

Try the Launcher like this:

Command:
Code:
lxterminal -e "sudo openvpn --config /home/torrey/Downloads/client.ovpn"

Options: "Run in terminal" DEACTIVATED!
(bug: https://bbs.archlinux.org/viewtopic.php?pid=1509108#p1509108)

Hope that helps! Smile



Re: Open as Administrator for a panel launcher/icon - torreydale - 09-10-2015

It did help.  Thanks.  I learned something.