Trying to run zenmap as root fails when using the menu entry in KDE4: once launched and prompted for the root password, kdesu exits with the message "Unable to run the command «'zenmap '» Reproducible: Always Steps to Reproduce: 1. Browse KDE4 apps menu 2. Click on «Internet → zenmap (as root)» to launch the nmap's GUI 3. Insert root password when prompted Actual Results: zenmap fails to launch with the following error from kdesu: "Unable to run the command 'zenmap '" Expected Results: zenmap's GUI shows up Running "kdesu zenmap" from konsole is OK Running "kdesu zenmap" from krunner (ALT+F2) is OK Runniong zenmap as normal user from KDE apps menu is OK The problem should lie in /usr/share/zenmap/su-to-zenmap.sh; when changing the line: COMMAND="zenmap $@" in: COMMAND="zenmap" the problem disappears.
Could you please check if removing the quotes around $COMMAND on lines 43 and 44 in su-to-zenmap.sh works for you? The lines after the changes should read: kdesu) kdesu -u "$PRIV" $COMMAND;; kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" $COMMAND;;
(In reply to comment #1) > Could you please check if removing the quotes around $COMMAND on lines 43 and > 44 in su-to-zenmap.sh works for you? The lines after the changes should read: > > kdesu) kdesu -u "$PRIV" $COMMAND;; > kde4su) /usr/lib/kde4/libexec/kdesu -u "$PRIV" $COMMAND;; Yes, now it works for me...
Thanks for the confirmation, the fix is now in CVS.