Open VoidPhantom opened 10 months ago
Hi @VoidPhantom, thanks for the report. Is firefox installed as a flatpak or snap?
If it is a flatpak the “Permission denied” error is the reason why the decorations are not hidden. You can check this https://github.com/hardpixel/unite-shell/issues/303#issuecomment-1193269456.
If you want to let Firefox to hide its title bar, you can hide the decorations when maximised by following the instructions at #340.
Firefox is installed as a snap.
The userCSS solution works for now, but ideally, Unite should be able to remove the title bar itself (just as it did in the past).
You should ask on ubuntu support channels on how to give snap permissions to /home/voidf/.local/share/gnome-shell/extensions/unite@hardpixel.eu
folder. There is nothing the extension can do about that. I don't use snap and I don't know how it works to help you.
The extension stopped removing the decorations because before v121, firefox was running on xwayland and unite used xprop to remove the decorations. Now firefox runs by default on wayland and unite uses css to remove the decorations, but your snap install does not have access to the css files.
If you find a solution on how to give permission to snap apps, please post it here.
you can use userChrome to make the buttons disappear when Firefox is maximised, here's how I did it (my window buttons are on the right, so you might need to tweak it a bit):
#main-window[sizemode*="maximized"] #titlebar .titlebar-buttonbox {
visibility: collapse !important;
display: none !important;
}
#main-window[sizemode*="maximized"] #nav-bar {
padding-right: 3px !important;
}
Describe the bug Firefox has just updated to version 121 and the extension no longer hides its title bar.
To Reproduce
Expected behavior The title bar should be hidden.
Screenshots This is what Firefox looks like if it is maximised with a title bar:
If Firefox itself is set to hide its title bar, it puts the window controls into the tab bar, using up way too much space for controls that are, thanks to Unite, redundant since they also appear in Ubuntu’s top bar:
Environment
Logs
Additional context For applications other than Firefox, the title bar is correctly removed.
In the logs, I spotted a strange “Permission denied” error referencing the file
/home/voidf/.local/share/gnome-shell/extensions/unite@hardpixel.eu/styles/gtk3/buttons-left/both.css
; there does not appear to be any reason why that file would not be openable (it is world-readable), and I do not know if it is relevant to this issue.