moriwuhen
deepin
2017-12-18 21:51 等更好方案,或者等官方自己解决,不然仍然chrome好了。
Reply Like 0 View the author
https://bbs.deepin.org/post/150357
等更好方案,或者等官方自己解决,不然仍然chrome好了。

https://bbs.deepin.org/post/150357
旁边没有 最大 最小 关闭 三个按钮 看着确实有些别扭. 不过想想 在没有其他更简单的解决方案之前. 这个算 ...
Popular Ranking
ChangePopular Events
More
wmctrl
2. 备份firefox
cd /opt/firefox/ ; mv firefox firefox-browser
3. 创建脚本
touch firefox;
#!/bin/bash
/opt/firefox/firefox-browser $1 & # 这里路径需要改成和你上面备份的路径一直
sleep 2;
F_W_ID=$(wmctrl -l |grep 'Firefox'|awk '{print $1}');
python -c 'from gtk.gdk import window_foreign_new, window_process_all_updates; w = window_foreign_new(int("'$F_W_ID'", 16)); w.set_decorations(0); window_process_all_updates()'
4. 给予执行权限
chmod u+x /opt/firefox/firefox
完毕
附上截图
缺点: 无法最大, 最小化 如果要关闭浏览器 右上角 可以关闭 或者Ctrl+F4