Bug#409111: twm does not support window manager changes from its menus
Package: twm
Version: 1:1.0.1-4
Severity: normal
Tags: patch
When generating menus with update-menus command, the TWM's
/etc/menu-methods/twm file does not add support to change Window
managers. The following patch makes the window manager changes
accessible from the menus.
-- System Information:
Debian Release: 4.0
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages twm depends on:
ii libc6 2.3.6.ds1-8 GNU C Library: Shared libraries
ii libice6 1:1.0.1-2 X11 Inter-Client Exchange library
ii libsm6 1:1.0.1-3 X11 Session Management library
ii libx11-6 2:1.0.3-4 X11 client-side library
ii libxext6 1:1.0.1-2 X11 miscellaneous extension librar
ii libxmu6 1:1.0.2-2 X11 miscellaneous utility library
ii libxt6 1:1.0.2-2 X11 toolkit intrinsics library
ii menu 2.1.33 generates programs menu for all me
ii x11-common 1:7.1.0-11 X Window System (X.Org) infrastruc
twm recommends no packages.
-- no debconf information
--- etc/menu-methods/twm.original 2006-05-22 02:14:48.000000000 +0300
+++ etc/menu-methods/twm 2007-01-31 00:46:36.000000000 +0200
@@ -20,6 +20,7 @@
function q($com)=esc($com,"\"");
function f($com)=" \"" q(title()) "\" f.exec \"" q($com) " &\"\n";
+function f_wm($com)=" \"" q(title()) "\" f.startwm \"" q($com) "\"\n";
#This doesn't seem to be possible with twm: wm="f.restart \"${title}\"\\n"
supported;
@@ -28,6 +29,7 @@
# x11 = " \"" $title "\" f.exec \""$command " &\"\n";
# text= " \"" $title "\" f.exec \"xterm -title \\\""
# $title "\\\" -e " esc($command,"\"") " &\"\n";
+ wm=f_wm($command);
endsupported;
startmenu= "menu \"" q($section) "\"\n{\n";
endmenu= "}\n";
Reply to: