I'm running Ubuntu 18.04 LTS with GNOME Shell.
Nautilus does not want to occupy 50% (left or right) of the screen sized at 1366x768.
Other applications (such as GNOME Terminal, Eye of GNOME, Gedit) are normally snapping to the left/right half of the screen.
But Nautilus can be resized to the width lower than half of screen (I can get 650 px, which is smaller than 1366/2 = 683 px).
The first usable screen resolution seems to be 1400x1050, then goes 1440x900. But large amount of current devices are still using 1366x768.
Is it just me?
Updates:
1. standard shortcut Super+← or Super+→ do not work too.
2. I reported bug 1801317 to launchpad which has linked upstream bug 411.
3. It does not work on GNOME FlashBack session too.
It would appear that this has something to do with the sidebar. My guess is it's a bug.
If you turn the sidebar off, the snap starts working as it should. Try the following commands from a terminal window.
Edit: The commands I've written out below hide and show the sidebar which can more easily be accomplished (as pointed out in comments) by simply pressing F9.
Turn the sidebar off:
Turn the sidebar back on:
While this is an answer, it's more of an option than a solution ... and probably not the solution you are looking for. It's certainly not the fix I or most other people would want, but it gives you a direction as far as reporting a bug!
This problem has disappeared when I upgraded Ubuntu from version 18.04 to 18.10. So unless you want to stay on 18.04 (because of the LTS for example), the upgrade is a clean solution.
Note: This is Only Workaround
my screen resolution is 1366x768 Ubuntu 18.04.1
when the sidebar is turned off, its working, it gave a clue that the width of the nautilus window is changed or system is calculating its width differently.
i have made changes to dock settings and see if its working in the same way..
Please don't make (you may not need) these below settings till you read the full answer.
by setting the dock to
Auto-hide
from settingsor with any of below settings
in all the above cases width of the screen differs according to the system calculation.
or by installing
dash-to-panel
extension it works.then the best way, i tried to change the width of the dock from default 48 to 47.
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 47
it worked. i guess this is the best way to achieve by changing the least.
This same thing happens on Debian 10 (now stable) if I use GTK 3 theme Qogir. Other themes don't produce the same behavior. So problem must originate from the theme...
Try changing your theme and you might save this problem. That's what I did. But instead I would love to know how to fix the theme Qogir, which is otherwise insanely good.
Another solution is to install a different file manager, for example my personal favourite alternative (and very similar to nautilus) file manager is Caja. You can simply type "caja" into software center and download from there. Caja has no snap problems.
However, there are some other applications that have the snap in problem, such as Discord, that this will not fix.
More user-friendly solution would be to install Unity instead of GNOME Shell:
then select Unity session on the login screen and use Nautilus window snapping as before: