[Share Experiences] 去除火狐国际版(在官网下载的免安装版)上面的白色标题栏
Tofloor
poster avatar
yjmthu
deepin
2021-04-11 21:13
Author

网上看到的那些方法似乎都在deepin20.2上面不管用,它们要么只加XDG_CURRENT_DESKTOP=GNOME,要么只加env MOZ_GTK_TITLEBAR_DECORATION=client,这样并不能完全隐藏火狐顶部白色标题栏。而我是小白,虽然不懂但是可以乱试,所以我发现把这两个连用就可以完美隐藏那个标题栏。分享.desktop代码如下

[Desktop Entry]
Exec=env MOZ_GTK_TITLEBAR_DECORATION=client XDG_CURRENT_DESKTOP=GNOME /data/home/XXXX/Firefox/firefox  %U
Icon=firefox
MimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
Name=Firefox
Terminal=false
Type=Application
Version=1.0
X-Deepin-AppID=Firefox
X-Deepin-CreatedBy=com.deepin.dde.daemon.Launcher
X-Deepin-Vendor=user-custom

其中火狐可执行文件的路径依自己的实际情况而定。

Reply Favorite View the author
All Replies
liumou
deepin
2021-04-11 21:51
#1

Reply View the author
yjmthu
deepin
2021-04-11 22:08
#2
liumou

学到了

Reply View the author
Ziggy
deepin
2021-04-12 01:41
#3
yjmthu

学到了

新版本都支持,之前是不行的

Reply View the author