Linux:列出所有可用的窗口管理器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/4214080/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Linux: list all available window managers
提问by
How do I get a list of all available windows managers on a linux system (Of course this would mostly not be needed but - I don't have root permissions). Very difficult to search on Google as all results returned are for "list of window managers for linux".
我如何获得 Linux 系统上所有可用 Windows 管理器的列表(当然,这通常不需要,但是 - 我没有 root 权限)。在 Google 上搜索非常困难,因为返回的所有结果都是针对“Linux 窗口管理器列表”的。
Clarification: I am looking for a command that lists "All window managers that are installed" on the system that I am working on.
澄清:我正在寻找一个命令,列出我正在使用的系统上的“所有已安装的窗口管理器”。
Interested to know it's distro dependent. My distro is RedHat.
有兴趣知道它依赖于发行版。我的发行版是 RedHat。
cat /proc/version
(Linux version 2.4.21-40.ELsmp ([email protected]) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)) #1 SMP Wed Mar 15 13:46:01 EST 2006)
回答by mih
On Slackware there is nice xwmconfig
, but I'm not sure if it exists on other distributions.
在 Slackware 上有 nice xwmconfig
,但我不确定它是否存在于其他发行版中。
回答by chris
Depends on your distribution/package manager. Most package managers will probably not even have a category "window managers".
取决于您的发行版/包管理器。大多数包管理器甚至可能没有“窗口管理器”类别。
Anyway, in gentoo you'd do:
无论如何,在 gentoo 中你会这样做:
$ eix -I -C x11-wm --only-names
x11-wm/enlightenment
x11-wm/twm
回答by horsh
It really depend on your particular distribution or OS. Say, on debian and ubuntu one uses:
这实际上取决于您的特定发行版或操作系统。说,在 debian 和 ubuntu 上使用:
$ update-alternatives --list x-window-manager
/usr/bin/twm
/usr/bin/fvwm2
/usr/bin/beryl
/usr/bin/beryl-xgl
/usr/bin/icewm
/usr/bin/kwin
/usr/bin/wmaker
回答by joeytwiddle
A couple more places I found on Debian:
我在Debian 上找到的另外几个地方:
grep "^Exec" /usr/share/xsessions/*
grep -l "section=.Window Managers." /usr/share/menu/*
(In the second, we may want to check the command= part of each file.)
(在第二个中,我们可能想要检查每个文件的 command= 部分。)
And on an old GentooI noticed:
在一个旧的Gentoo 上,我注意到:
find /etc/X11/Sessions/* -printf '%f\n'