设置在 Xvfb 环境中打开窗口的默认位置 [英] Setting the default location for opening windows in an Xvfb environment

查看:35
本文介绍了设置在 Xvfb 环境中打开窗口的默认位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题让我发疯.也许 Stack Overflow 的专家可以提供帮助.

This problem is driving me crazy. Maybe the experts at Stack Overflow can help.

我想在 Xvfb 中打开一个应用程序并让它始终位于 x,y=0,0(左上角).

I want to open an application in Xvfb and to have it always positioned at x,y=0,0 (Top left corner).

应用程序不接受任何参数,允许它重新定位打开的窗口本身.有没有办法在 X 服务器中设置默认窗口位置?(Xvfb).

The application does not take any parameters, allowing it to reposition the opened window itself. Is there a way to set the default window position in a X-server? (Xvfb).

最好的问候古斯塔夫

推荐答案

我使用 Xvfb 和 twm (yum install twm).您需要创建一个 ~/.twmrc 文件来指示窗口的显示方式.

I use Xvfb with twm (yum install twm). You need to create a ~/.twmrc file to indicate how windows are displayed.

我只使用RandomPlacement",但在您的情况下,您可能想使用UsePPosition"(检查 http://www.xfree86.org/4.4.0/twm.1.html) 以获取更多选项.

I just use 'RandomPlacement' but in your case you might want to use 'UsePPosition' (check http://www.xfree86.org/4.4.0/twm.1.html) for more options.

这篇关于设置在 Xvfb 环境中打开窗口的默认位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆