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的窗口管理器列表”。
regards,
问候,
JP
J.P
Clarification: I am looking for a command that lists "All window managers that are installed" on the system that I am working on.
澄清:我正在寻找一个命令,列出我正在使用的系统上的“所有已安装的窗口管理器”。
Thanks for the answers. Interesting to know its distro dependent. My distro is RedHat.
谢谢你的回答。有兴趣知道它的发行版依赖。我的发行版是RedHat。
cat /proc/version
(Linux version 2.4.21-40.ELsmp (centos@sillage.bis.pasteur.fr) (gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-53)) #1 SMP Wed Mar 15 13:46:01 EST 2006)
4 个解决方案
#1
3
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
#2
3
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
#3
2
On Slackware there is nice xwmconfig
, but I'm not sure if it exists on other distributions.
在Slackware上有很好的xwmconfig,但我不确定它是否存在于其他发行版上。
#4
1
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.)
(在第二种情况下,我们可能要检查命令=每个文件的一部分。)
And on an old Gentoo I noticed:
在一个古老的Gentoo上,我注意到:
find /etc/X11/Sessions/* -printf '%f\n'
#1
3
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
#2
3
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
#3
2
On Slackware there is nice xwmconfig
, but I'm not sure if it exists on other distributions.
在Slackware上有很好的xwmconfig,但我不确定它是否存在于其他发行版上。
#4
1
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.)
(在第二种情况下,我们可能要检查命令=每个文件的一部分。)
And on an old Gentoo I noticed:
在一个古老的Gentoo上,我注意到:
find /etc/X11/Sessions/* -printf '%f\n'