Bug#286631: xbase-clients: the xconsole menu should use sudo
Package: xbase-clients
Version: 4.3.0.dfsg.1-8
Severity: normal
Tags: patch
Hello,
a small problem with the menu entry for xconsole in xbase-clients:
normal user can't/shouldn't use it, but with the actual conf, only
root can use this from the window menu. Why not define it using sudo,
so that selected users can access it directly from the menu ? Patch
included to show how I implemented it locally.
Best regards
Pascal Dupuis
***
diff -bBu xbase-clients.orig xbase-clients
--- xbase-clients.orig 2004-12-21 09:14:30.000000000 +0100
+++ xbase-clients 2004-12-21 09:15:15.000000000 +0100
@@ -62,7 +62,7 @@
section="Apps/System"\
longtitle="Xconsole: monitor system console messages with X"\
title="Xconsole"\
- command="xconsole"
+ command="sudo /usr/X11R6/bin/xconsole -file /dev/xconsole"
?package(xbase-clients):\
needs="x11"\
section="Apps/Tools"\
***
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.9
Locale: LANG=fr_BE@euro, LC_CTYPE=fr_BE@euro (charmap=ISO-8859-15)
Versions of packages xbase-clients depends on:
ii cpp 4:3.3.4-2 The GNU C preprocessor (cpp)
ii libc6 2.3.2.ds1-18 GNU C Library: Shared libraries an
ii libdps1 4.3.0.dfsg.1-8 Display PostScript (DPS) client li
ii libexpat1 1.95.8-1 XML parsing C library - runtime li
ii libfontconfig1 2.2.3-4 generic font configuration library
ii libfreetype6 2.1.7-2.3 FreeType 2 font engine, shared lib
ii libgcc1 1:3.4.2-2 GCC support library
ii libice6 4.3.0.dfsg.1-8 Inter-Client Exchange library
ii libncurses5 5.4-4 Shared libraries for terminal hand
ii libpng12-0 1.2.8rel-1 PNG library - runtime
ii libsm6 4.3.0.dfsg.1-8 X Window System Session Management
ii libstdc++5 1:3.3.4-13 The GNU Standard C++ Library v3
ii libxaw7 4.3.0.dfsg.1-8 X Athena widget set library
ii libxcursor1 1.1.3-1 X cursor management library
ii libxext6 4.3.0.dfsg.1-8 X Window System miscellaneous exte
ii libxft2 2.1.2-6 FreeType-based font drawing librar
ii libxi6 4.3.0.dfsg.1-8 X Window System Input extension li
ii libxmu6 4.3.0.dfsg.1-8 X Window System miscellaneous util
ii libxmuu1 4.3.0.dfsg.1-8 lightweight X Window System miscel
ii libxpm4 4.3.0.dfsg.1-8 X pixmap library
ii libxrandr2 4.3.0.dfsg.1-8 X Window System Resize, Rotate and
ii libxrender1 0.8.3-7 X Rendering Extension client libra
ii libxt6 4.3.0.dfsg.1-8 X Toolkit Intrinsics
ii libxtrap6 4.3.0.dfsg.1-8 X Window System protocol-trapping
ii libxtst6 4.3.0.dfsg.1-8 X Window System event recording an
ii libxv1 4.3.0.dfsg.1-8 X Window System video extension li
ii xlibmesa-gl [libgl1] 4.3.0.dfsg.1-8 Mesa 3D graphics library [XFree86]
ii xlibmesa-glu [libglu1] 4.3.0.dfsg.1-8 Mesa OpenGL utility library [XFree
ii xlibs 4.3.0.dfsg.1-8 X Window System client libraries m
ii xlibs-data 4.3.0.dfsg.1-8 X Window System client data
ii zlib1g 1:1.2.2-3 compression library - runtime
-- no debconf information
--- xbase-clients.orig 2004-12-21 09:14:30.000000000 +0100
+++ xbase-clients 2004-12-21 09:15:15.000000000 +0100
@@ -62,7 +62,7 @@
section="Apps/System"\
longtitle="Xconsole: monitor system console messages with X"\
title="Xconsole"\
- command="xconsole"
+ command="sudo /usr/X11R6/bin/xconsole -file /dev/xconsole"
?package(xbase-clients):\
needs="x11"\
section="Apps/Tools"\
Reply to: