imz*_*hev 5 xfce xfce4-terminal maximize
我想在始终最大化的 Xfce 中启动 Xfce 终端。(通常,我通过面板中的启动器执行此操作。)
我已经通过 X 资源为 Emacs做到了这一点;但是,xfce4-terminal
不读取 X 资源。
如何让它始终启动最大化?
不幸的是,xfce4-terminal
它不读取 X 资源,因此没有统一的方法为所有 xfce4 终端(甚至是远程终端)的 X 客户端进行此类配置。
启动终端最大化?已经在 reddit 上被问过并得到了回答;这只是完整正确答案的一部分:
更改中的
Exec
命令/usr/share/applications/xfce4-terminal.desktop
。
这个答案有两个缺点:
/usr/share/applications/
不是定制的地方;它会被发行版软件包升级覆盖。
它不会影响终端的启动器,后者反过来使用exo-open --launch TerminalEmulator
. (这个问题是在 reddit 的那个帖子中指出的。)
解决方案:
根据killermoehre 在https://mail.xfce.org/pipermail/xfce/2015-April/034375.html 中的建议:
永远不要直接更改
/usr
(除了/usr/local
)中的文件。它们将在更新时被覆盖。如果要进行更改,请先将它们复制到~/.local/share/applications/
(如有必要,请创建)。
所以,我已经编辑/usr/share/applications/xfce4-terminal.desktop
并将其保存到~/.local/share/applications/xfce4-terminal.desktop
. 更改后的行如下所示:
Exec=xfce4-terminal --maximize
Run Code Online (Sandbox Code Playgroud)
通过搜索~/.local
并~/.config
通过菜单将自定义助手配置为终端后,我发现了另一个需要更改的地方—— ~/.local/share/xfce4/helpers/custom-TerminalEmulator.desktop
(--maximize
出现在两个地方):
[Desktop Entry]
NoDisplay=true
Version=1.0
Encoding=UTF-8
Type=X-XFCE-Helper
X-XFCE-Category=TerminalEmulator
X-XFCE-CommandsWithParameter=/usr/bin/xfce4-terminal --maximize -x "%s"
Icon=xfce4-terminal
Name=xfce4-terminal
X-XFCE-Commands=/usr/bin/xfce4-terminal --maximize
Run Code Online (Sandbox Code Playgroud)
而我有以下几点~/.config/xfce4/helpers.rc
:
WebBrowser=firefox
MailReader=thunderbird
FileManager=Thunar
TerminalEmulator=xfce4-terminal
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
6149 次 |
最近记录: |