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 164244 - disable libgnomesu support
disable libgnomesu support
Status: RESOLVED FIXED
Product: system-monitor
Classification: Core
Component: general
git master
Other Linux
: Immediate blocker
: ---
Assigned To: System-monitor maintainers
System-monitor maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-16 12:20 UTC by Benoît Dejean
Modified: 2011-11-11 10:03 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
Patch to implement the feature. (4.52 KB, patch)
2005-02-08 16:11 UTC, Hongli Lai
accepted-commit_now Details | Review

Description Benoît Dejean 2005-01-16 12:20:39 UTC
libgnomesu support could be disabled (though i'd like default to be
--enable-libgnomesu).

TODO:
- configure.in : enable/disable libgnomesu
- src/procdialogs.c (procdialog_create_root_password_dialog): Add dialog if
libgnomesu is disabled. "You can't kill/renice this process because procman has
not be built with libgnomesu support" doesn't sound user-friendly, what would be
the error message ?
Comment 1 Marco Pesenti Gritti 2005-01-16 18:03:36 UTC
Please disable it by default if libgnomesu is not installed. Right now procman
breaks my jhbuild...

Maybe we could avoid the dialog at all by making the menu insensitive, but
that's not very user friendly either.
If we have a message I think it should be something like "You can't kill/renice
this process because it's owned by another user".
Comment 2 Marco Pesenti Gritti 2005-01-16 18:07:59 UTC
Btw as a compromise for the disagreements... What about enabling libgnomesu
support by default if the library is installed but not distribute it with GNOME?
That way distributions can deal with the issue...

I dont really know the details here, so forgive me if I'm showing my ignorance ;)
Comment 3 Benoît Dejean 2005-01-16 18:36:37 UTC
That's why i'm looking for someone who knows autotools for TODO#1.

For insensitive menu : i don't like the idea to hack everything just because
libgnomesu is not installed. I'd rather print an error dialog when renice/kill
fails.
Comment 4 Benoît Dejean 2005-02-07 22:22:29 UTC
Should be fixed.
Comment 5 Hongli Lai 2005-02-08 16:11:53 UTC
Created attachment 37179 [details] [review]
Patch to implement the feature.

Here's a patch which makes procman detect libgnomesu at runtime, using GModule.

This patch is not tested because I'm unable to compile procman; I'm stuck with
GNOME 2.4. :(
But it should give you an idea about what I'm doing.
Comment 6 Benoît Dejean 2005-02-08 18:11:54 UTC
very nice, i didn't know glib has a dlopen wrapper