Hello,

I have an app that I launch with root privs using 'kdesu'.

If I launch it from shell when I'm logged in as a normal user,

Code:
    kdesu -d -c "/opt/phpstorm/bin/phpstorm.sh" %f
it works perfectly.

But if I set up a Plasma panel icon with

Code:
Properties:
    Application:
        Command"
            kdesu -d -c "/opt/phpstorm/bin/phpstorm.sh" %f
when I click to launch it it tries to start then quites. The system logs show

Code:
    Jul 13 18:16:09 jedi.mylan sudo[11259]:  yoda : TTY=pts/4 ; PWD=/home/yoda ; USER=root ; COMMAND=/usr/lib64/libexec/kf5/kdesu_stub -
    Jul 13 18:16:09 jedi.mylan sudo[11259]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Jul 13 18:16:09 jedi.mylan sudo[11259]: pam_systemd(sudo:session): Cannot create session: Already running in a session
    Jul 13 18:16:09 jedi.mylan sudo[11262]:  yoda : TTY=pts/5 ; PWD=/home/yoda ; USER=root ; COMMAND=/usr/lib64/libexec/kf5/kdesu_stub -
    Jul 13 18:16:09 jedi.mylan sudo[11262]: pam_unix(sudo:session): session opened for user root by (uid=0)
    Jul 13 18:16:09 jedi.mylan sudo[11262]: pam_systemd(sudo:session): Cannot create session: Already running in a session
    Jul 13 18:16:12 jedi.mylan sudo[11262]: pam_unix(sudo:session): session closed for user root
    Jul 13 18:16:12 jedi.mylan sudo[11259]: pam_unix(sudo:session): session closed for user root
What do I need to do to get it to launch OK from the icon in the Plasma panel?

I don't know what info to provide that's helpful so please just ask.

Thanks.

Rob