Hi,
I would like my MEGA-folder to be the default directory that Nautilus opens when opening a new window.
I tried changing the Exec parameter in /usr/share/applications/nautilus-home.desktop, but I’m not allowed to make changes. Is it unsafe to still try to change it or is there a better way to change the default startup window?
nautilus-home.desktop was deleted nearly 14 years ago (here). I’m bamboozled that you somehow have that in Fedora Bluefine. Huh. Whatever.
Anyway, what you want to do is copy the actual nautilus desktop file /usr/share/applications/org.gnome.Nautilus.desktop to ~/.local/share/applications, and then you can edit it as you please.
I’m sorry, it is indeed org.gnome.Nautilus.desktop, I copied from a a forum where I found that solution.
It worked to copy to .local/share/applications, where I edited: Exec=nautilus --new-window %U to Exec=nautilus --new-window /var/home/jonathan/MEGA. It didn’t work, also not after reboot.
Nautilus uses bus activation, so the Exec key is not actually getting used. You can disable bus activation by removing the DBusActivatable=true line or setting it to false.
Also I think this might end up only affecting the first window opened, because once Nautilus is running, most programs trying to open another Nautilus window will either use the new-window action from the .desktop file, which you can modify by changing the Exec key there as well. Or maybe some applications might use one of the DBus interfaces (org.freedesktop.Application or org.gtk.Actions) on the running instance, which you can’t modify without modifying the source code. Luckily the new-window action from the .desktop file seems to be the preferred option, at least in gnome-shell.
It’s not exactly what you were asking for, but you could also consider to set up a custom shortcut in GNOME’s keyboard settings.
I myself have created a shortcut for Super+Return that runs nautilus -w recent:/// for opening nautilus showing the recently used files.
Most of the time I want to run nautilus I simply press Super+Return
You could set up a shortcut that runs nautilus -w /var/home/jonathan/MEGA
When you are in /var/home/jonathan/MEGA, you could further click on the three vertical dots shown on the right side of the screenshot to add your folder to the bookmarks (which are shown on the left side of your nautilus window).
Like this, you can access your folder by one click, regardless how you started nautilus. You then can even right click on the bookmark and open your folder as tab or new window.