A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
2 just added concatanation to kbknapp concatanation on me :D :D :D
source | link

I have same problem and i was manage to find solution for one part of the problem. That is you need root access to vmware.

Simple open terminal and type:

sudo vmplayer

or i find beater solution:

pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

but i dont know how to put this command in:

/usr/share/applications/vmware-player.desktop

when i do:

Exec=pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

instead of:

Exec=/usr/bin/vmplayer %U

program wont run.

Now my question is how to automate process and put command in application shortcut, i am seeking for elegant solution ;)

EDIT: Grate thanks to @kbknapp for completing solution i provide. Once again Thank You mate ;)

And of course just to add some revise on hes solution. If you use vmplayer like you, you need to edit /usr/share/polkit-1/actions/com.vmware.Workstation.policy

<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/vmware</annotate>

to look like /usr/bin/vmplayer

and on the end to make vmware-exec executable:

sudo chmod +x /usr/bin/vmware-exec

And thats it ;)

I have same problem and i was manage to find solution for one part of the problem. That is you need root access to vmware.

Simple open terminal and type:

sudo vmplayer

or i find beater solution:

pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

but i dont know how to put this command in:

/usr/share/applications/vmware-player.desktop

when i do:

Exec=pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

instead of:

Exec=/usr/bin/vmplayer %U

program wont run.

Now my question is how to automate process and put command in application shortcut, i am seeking for elegant solution ;)

I have same problem and i was manage to find solution for one part of the problem. That is you need root access to vmware.

Simple open terminal and type:

sudo vmplayer

or i find beater solution:

pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

but i dont know how to put this command in:

/usr/share/applications/vmware-player.desktop

when i do:

Exec=pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

instead of:

Exec=/usr/bin/vmplayer %U

program wont run.

Now my question is how to automate process and put command in application shortcut, i am seeking for elegant solution ;)

EDIT: Grate thanks to @kbknapp for completing solution i provide. Once again Thank You mate ;)

And of course just to add some revise on hes solution. If you use vmplayer like you, you need to edit /usr/share/polkit-1/actions/com.vmware.Workstation.policy

<annotate key="org.freedesktop.policykit.exec.path">/usr/bin/vmware</annotate>

to look like /usr/bin/vmplayer

and on the end to make vmware-exec executable:

sudo chmod +x /usr/bin/vmware-exec

And thats it ;)

1
source | link

I have same problem and i was manage to find solution for one part of the problem. That is you need root access to vmware.

Simple open terminal and type:

sudo vmplayer

or i find beater solution:

pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

but i dont know how to put this command in:

/usr/share/applications/vmware-player.desktop

when i do:

Exec=pkexec --user milos env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY /usr/bin/vmplayer

instead of:

Exec=/usr/bin/vmplayer %U

program wont run.

Now my question is how to automate process and put command in application shortcut, i am seeking for elegant solution ;)