hevanaa/timekpr-spec

Elevation issue in Fedora/Gnome

Closed this issue · 1 comments

When right clicking on the timekpr client icon and selecting Timekpr Control Panel the elevation dialog will popup and ask password for the current user (assuming the user has sudo rights). Nothing happens after entering the password and there is the following error in terminal:

/usr/lib64/python2.7/site-packages/gtk-2.0/gtk/init.py:57: GtkWarning: could not open display

The elevation isn't correctly handled. In the desktop file it is handled by executing "beesu /usr/bin/timekpr-gui".

The problem seems to be that timekpr-gui is executed with pkexec (from the client) and requires a Polkit policy. This part works ok when a policy is created (or modified from the ubuntu one in the source). However, it is not possible to execute "pkexec timekpr-gui" from the desktop file. It will result in "Refusing to render service to dead parents.". A workaround is to point the desktop file to a launcher script that runs "pkexec timekpr-gui". The policy then also allows it to work.