fix start applications via pkexec through both the menu launcher and ALT+F2

This change will fix those bug in fedora.
https://bugzilla.redhat.com/show_bug.cgi?id=902010
https://bugzilla.redhat.com/show_bug.cgi?id=884647
Several system applications who needs pkexec doesn't start from the menu but starting fine in a terminal.
It's already a known bug in gnome-panel,xfce-panel and gnome-shell.
https://bugzilla.xfce.org/show_bug.cgi?id=9373
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=690339
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=650038
https://bugzilla.gnome.org/show_bug.cgi?id=686059
The fix was adopted from gnome-panel and adjust for mate-panel.