X11 在 ubuntu mini 发行版上带有窗口装饰

发布于 2024-11-05 18:26:47 字数 694 浏览 2 评论 0原文

目标:在屏幕中间以纯色背景显示应用程序。这意味着除了应用程序和纯色背景之外,没有任何其他内容显示 gnome-desktop。

目前,我使用 X11 作为背景 xstart -solid Gray,这很棒,但是作为测试应用程序,我正在运行 firefox,我看到它没有窗口装饰,即:最大、最小标题或边框,xterm 也没有。我想知道是否可以在不安装 gnome 的情况下显示装饰,只需安装主题即可,例如:我已经完成但无法建立连接的 gnome-themes,或者如果没有,仅运行 X 的天气将无法工作更多 gnome 模块。我对深入研究 Linux 的内部工作原理很陌生,因为我以前从未接触过它。我之前确实问过一个问题,这让我接触到了 xstart 和 xsetroot,并且我已经尝试了一些时间来熟悉它们。

我确实认识到我可能在这一切上都做错了,但如果我们不尝试,我们就不会学到东西。

如果有人知道任何可以提供帮助的教程或文档,或者如果有人有任何提示,我将不胜感激。

干杯

克里斯

解决方案

只是想我会提到我在安装 ubuntu 服务器发行版后解决了我的问题我通过 apt-get 添加了 xinit 然后添加了 metacity 然后我使用 gconf-editor 编辑了 gconf 文件,然后从 /usr/ 中删除了 Gnome-panels bin 但是,由于我将来可能需要它们,因此在删除它们之前我已经制作了它们的副本。再次感谢您的帮助,非常感谢。

Goal: To display an application in the middle of the screen on a solid colour background. This means nothing else showing no gnome-desktop nothing apart from the application and the solid colour background.

Currently I'm using X11 for the background xstart -solid Grey which is great however as a test application I'm running firefox which I see has no window decorations ie: max, min title or boarder neither for that matter does xterm. I was wondering if it is possible to show the decorations without installing gnome possibly by installing just the themes eg: gnome-themes which I have done but have been unable to make the connection, or weather just running X isn't going to work without more gnome modules. I'm new to delving into the inner workings of linux as I've never had to deal with it before. I did ask a question previously which led me to xstart and xsetroot and I've been playing around with them for a bit trying to familiarise myself.

I do recognise that it is possible that I have gone about this all wrong, but if we don't try we don't learn.

If anyone knows of any tutorials or documentation that could help or if anyone has any tips I'd be grateful for the pointers.

Cheers

Chris

SOLUTION

Just thought I'd mention that I solved my issue after installing an ubuntu server distro I added xinit via apt-get then added metacity Then I edited the gconf files using gconf-editor then removed the Gnome-panels from /usr/bin However as I may possibly require them in the future I have made a copy of them before I deleted them. Thanks again for the help it was much appreciated.

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

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

发布评论

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

评论(2

双马尾 2024-11-12 18:26:47

窗口装饰由窗口管理器创建/管理。如果你没有运行,你就不会得到窗户装饰。

The window decorations are created/managed by the window manager. If you don't have one running, you won't get window decorations.

从﹋此江山别 2024-11-12 18:26:47

好吧...我想我明白你在问什么。 Gnome 是一个“桌面”,如果我没记错的话,其中包含许多名为 Metacity 的“窗口管理器”之一。这是添加标题和边框等的部分。有许多纯窗口管理器(不是桌面)。一个常见且流行的“窗口管理器”是fluxbox,尽管还有许多其他的。 Fluxbox 确实允许您在启动窗口时“取消装饰”窗口。我不确定这是否是你要问的。希望它能有所帮助。

Ok... I think I understand what you are asking. Gnome is a "Desktop", and includes with it one of many "Window Managers" called Metacity if I remember correctly. That is the part that adds the title and borders etc. There are many pure window managers(not desktops). A common and popular "Window Manager" is fluxbox although there are many others. Fluxbox does allow you to "undecroate" a window when you launch it. I'm not sure if this is what you are asking. Hopefully it is of some help.

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