Linux Lite Forums

Full Version: Open as Administrator for a panel launcher/icon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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?
gparted-pkexec works for me for my gparted launcher in taskbar. It prompts for a password when hit.
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]
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?...8#p1509108)

Hope that helps! Smile
It did help.  Thanks.  I learned something.