关于Deepin下Firefox Nightly无法隐藏标题栏的问题[20171208更新]
Tofloor
poster avatar
iceyer
deepin
2017-11-19 17:21
Author
本帖最后由 Iceyer 于 2017-12-13 10:36 编辑

鉴于Firefox又又又改了实现,对于12月8号以后的nightly版本,请将环境变量设置成为MOZ_GTK_TITLEBAR_DECORATION=system,对应Exec字段如下

Exec=MOZ_GTK_TITLEBAR_DECORATION=system firefox


12月8日分隔线 ----------------------------------------------------------------------------


以下操作仅限于Firefox Nightly版本:

由于上游代码里面使用白名单判断是否支持隐藏标题栏,导致Deepin桌面下的HideTitle功能无法使用,大家可以暂时修改下desktop文件来绕过去:

1 打开firefox的desktop文件,找到Exec字段,插入env XDG_CURRENT_DESKTOP=GNOME,如下:
Exec=env XDG_CURRENT_DESKTOP=GNOME firefox (已失效,看置顶)

2 打开firefox,地址栏输入about:config,找到widget.allow-client-side-decoration这个选项,双击改成true就可以了。

3 拖动只能拖动空白区域,可以自己在定制里面添加一个空白区域添加到地址栏旁边。

效果如下:


Reply Favorite View the author
All Replies
avatar
owen19
deepin
2017-11-19 19:41
#1
请问大神,我这里没有widget.allow-client-side-decoration这个选项该怎么办??
Reply View the author
avatar
iceyer
deepin
2017-11-19 21:52
#2
https://bbs.deepin.org/post/148538
请问大神,我这里没有widget.allow-client-side-decoration这个选项该怎么办??

是57的版本吗?你试试Nightly版本
https://download-installer.cdn.m ... inux-x86_64.tar.bz2
Reply View the author
avatar
155******38
deepin
2017-11-19 23:49
#3
58版本找不到about:config里面的字段值。
Reply View the author
avatar
iceyer
deepin
2017-11-20 00:11
#4
https://bbs.deepin.org/post/148538
58版本找不到about:config里面的字段值。

试试Nightly版本
Reply View the author
avatar
南浦月
deepin
2017-11-20 03:05
#5
我的插件不用更新了
Reply View the author
avatar
南浦月
deepin
2017-11-20 03:09
#6
据可靠消息,2017-11-16以后的Nightly版本才有这个选项。
Reply View the author
avatar
iceyer
deepin
2017-11-20 07:12
#7
https://bbs.deepin.org/post/148538
据可靠消息,2017-11-16以后的Nightly版本才有这个选项。

的确是Nightly才有,而且官方版本关闭按钮还是没有,但是Flatpak版本的已经有关闭按钮了。
Reply View the author
avatar
152******80
Advanced Packager
2017-11-20 17:33
#8
这是个什么版本,另外flatpak版本在哪里下载https://bbs.deepin.org/user/17898
Reply View the author
avatar
152******80
Advanced Packager
2017-11-20 19:10
#9
可以打中文字吗,我这边搜狗不能用
Reply View the author
avatar
iceyer
deepin
2017-11-29 17:21
#10
https://bbs.deepin.org/post/148538
这是个什么版本,另外flatpak版本在哪里下载@Iceyer

Flatpak版本不是官方就有下载的地方吗
https://flatpak.org/apps
最下面有firefox。 这个版本吧中文打字应该是不行的,需要deepin这边升级fcitx。
Reply View the author
avatar
quadpixels
deepin
2017-12-07 11:42
#11
赞一个
话说“拖动只能拖动空白区域”这一点
要是Deepin的WM能像XFCE一样按着Alt就能点窗口任意位置拖动就美滋滋了!
Reply View the author
avatar
n1026
deepin
2018-03-14 19:09
#12
我想问,最上面的教程能不能讲的再详细写,萌新看不懂,比如,设置环境变量,对应那里的Exec字符串
Reply View the author
avatar
wangyong
deepin
2018-03-14 22:54
#13
https://bbs.deepin.org/post/148538
赞一个
话说“拖动只能拖动空白区域”这一点
要是Deepin的WM能像XFCE一样按着Alt就能点窗口任意位置拖动就 ...

一直都可以,只是后面去掉了,因为这个功能会导致重量级的设计软件无法使用。
Reply View the author
Comments
quadpixels
2018-04-22 15:08
谢谢管理员,我后来发现这个功能其实可以通过gsettings启用 (:
avatar
iceyer
deepin
2018-03-15 01:08
#14
https://bbs.deepin.org/post/148538
我想问,最上面的教程能不能讲的再详细写,萌新看不懂,比如,设置环境变量,对应那里的Exec字符串 ...
  1. echo "MOZ_GTK_TITLEBAR_DECORATION=system" | sudo tee /etc/profile.d/firefox-fix.sh
  2. echo "export MOZ_GTK_TITLEBAR_DECORATION" | sudo tee -a /etc/profile.d/firefox-fix.sh
Copy the Code


执行上面的代码,注销或者重启就好了
Reply View the author
avatar
n1026
deepin
2018-03-15 03:35
#15
https://bbs.deepin.org/post/148538
执行上面的代码,注销或者重启就好了

还是不行 已经生成了 /etc/profile.d/firefox-fix.sh/里面也有 两句内容,我安装的是 firefox-zh
Reply View the author
avatar
iceyer
deepin
2018-03-15 18:31
#16
本帖最后由 Iceyer 于 2018-3-15 10:32 编辑
https://bbs.deepin.org/post/148538
还是不行 已经生成了 /etc/profile.d/firefox-fix.sh/里面也有 两句内容,我安装的是 firefox-zh ...

firefox要60以上的版本,59以下的版本不支持隐藏标题栏。
59~60之间的版本要改XDG的环境变量,这个不建议修改。
Reply View the author
avatar
yexiaoqi
deepin
2018-07-19 19:11
#17
https://bbs.deepin.org/post/148538
执行上面的代码,注销或者重启就好了

亲测,管用,谢谢
Reply View the author