Linux:列出所有可用的窗口管理器

发布于 2024-10-02 17:58:14 字数 528 浏览 0 评论 0原文

如何获取 Linux 系统上所有可用 Windows 管理器的列表(当然这通常是不需要的,但是 - 我没有 root 权限)。 在 Google 上搜索非常困难,因为返回的所有结果都是“linux 窗口管理器列表”。

澄清:我正在寻找一个列出我正在使用的系统上“安装的所有窗口管理器”的命令。

有兴趣知道它依赖于发行版。我的发行版是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)

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".

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.

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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

小红帽 2024-10-09 17:58:14

这实际上取决于您的特定发行版或操作系统。
比如说,在 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

It really depend on your particular distribution or OS.
Say, on debian and ubuntu one uses:

$ 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
蒗幽 2024-10-09 17:58:14

我在 Debian 上发现了另外几个地方:(

grep "^Exec" /usr/share/xsessions/*

grep -l "section=.Window Managers." /usr/share/menu/*

在第二个地方,我们可能想检查每个文件的 command= 部分。)

在旧的 Gentoo 上我注意到:

find /etc/X11/Sessions/* -printf '%f\n'

A couple more places I found on 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:

find /etc/X11/Sessions/* -printf '%f\n'
z祗昰~ 2024-10-09 17:58:14

取决于您的发行版/包管理器。大多数包管理器甚至可能没有“窗口管理器”类别。

无论如何,在 gentoo 中你会这样做:

$ eix -I -C x11-wm --only-names
x11-wm/enlightenment
x11-wm/twm

Depends on your distribution/package manager. Most package managers will probably not even have a category "window managers".

Anyway, in gentoo you'd do:

$ eix -I -C x11-wm --only-names
x11-wm/enlightenment
x11-wm/twm
内心旳酸楚 2024-10-09 17:58:14

在 Slackware 上有很好的 xwmconfig,但我不确定它是否存在于其他发行版上。

On Slackware there is nice xwmconfig, but I'm not sure if it exists on other distributions.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文