After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 626469 - Add support for other su-like programs (xdg-su, gnomesu)
Add support for other su-like programs (xdg-su, gnomesu)
Status: RESOLVED FIXED
Product: gnome-commander
Classification: Other
Component: application
unspecified
Other Linux
: Normal enhancement
: 1.2.9
Assigned To: epiotr
epiotr
Depends on:
Blocks:
 
 
Reported: 2010-08-09 18:24 UTC by Vincent Untz
Modified: 2010-09-06 22:01 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch for this (1.44 KB, patch)
2010-08-09 21:00 UTC, Vincent Untz
none Details | Review

Description Vincent Untz 2010-08-09 18:24:58 UTC
The code to find a su-like program is:

    su = g_find_program_in_path ("gksu");
    if  (!su)
        su = g_find_program_in_path ("kdesu");

It should really first check for xdg-su, and then try gksu, gnomesu and kdesu.
Comment 1 Vincent Untz 2010-08-09 18:25:54 UTC
Note that xdg-su and gnomesu need a -c option before the program to run.
Comment 2 Vincent Untz 2010-08-09 21:00:52 UTC
Created attachment 167453 [details] [review]
Patch for this

Probably not the cleanest way to handle this, and untested, but this should work.
Comment 3 epiotr 2010-09-06 22:01:50 UTC
This problem has been fixed in our software repository. The fix will go into the next, 1.2.8.8 release. Thank you for your bug report.