网上看到的那些方法似乎都在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 %UIcon=firefoxMimeType=text/html;text/xml;application/xhtml_xml;image/webp;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;Name=FirefoxTerminal=falseType=ApplicationVersion=1.0X-Deepin-AppID=FirefoxX-Deepin-CreatedBy=com.deepin.dde.daemon.LauncherX-Deepin-Vendor=user-custom
其中火狐可执行文件的路径依自己的实际情况而定。
学到了
新版本都支持,之前是不行的
Featured Collection
Popular Ranking
Popular Events
网上看到的那些方法似乎都在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
其中火狐可执行文件的路径依自己的实际情况而定。