Nemo

Nemo is a fork of GNOME Files (formerly known as Nautilus). It is also the default file manager of the Cinnamon desktop. Nemo is based on the Files 3.4 code. It was created as a response to the changes in Files 3.6 which saw features such as type ahead find and split pane view removed.

Installation

Install the nemo package.

Extensions

Some programs can add extra functionality to Nemo. Here are a few packages that do just that:

  • Nemo File Roller File archiver extension for Nemo.
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-fileroller || nemo-fileroller
  • Nemo Compare An utility which compares two files using meld.
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-compare || nemo-compareAUR
  • Nemo Preview GtkClutter and Javascript-based quick previewer for Nemo.
https://github.com/linuxmint/nemo-extensions/tree/master/nemo-preview || nemo-preview

See AUR and nemo-extensions github repo for all extensions.

Configuration

Nemo is simple to configure graphically but not all options are in the preferences screen in Nemo. More options are available in the dconf-editor under org.nemo.

Set Nemo as default file browser

To set Nemo as the default file browser, execute the following:

$ xdg-mime default nemo.desktop inode/directory application/x-gnome-saved-search

Show / hide desktop icons

To enable/disable desktop icons rendering feature in nemo, change the following setting true or false (false to hide, true to show):

$ gsettings set org.nemo.desktop show-desktop-icons false

This fixes the console warning WARNING **: Can not determine workarea, guessing at layout for tiling window managers (such as i3).

Change the default terminal emulator for Nemo

is set as the default, if it is not installed, neither the "Open in terminal" context menu entry feature will not work, nor shell scripts or terminal applications will not run from Nemo.

You can change the default setting with to the preferred terminal application.

$ gsettings set org.cinnamon.desktop.default-applications.terminal exec <terminal-name>

To be able to run shell scripts from Nemo, make sure you set up the proper argument for the preferred terminal application (the default is for ).

$ gsettings set org.cinnamon.desktop.default-applications.terminal exec-arg <argument>

Set keyboard shortcut for "Open in terminal"

If you want to edit keyboard shortcuts, you need first to change /org/cinnamon/desktop/interface/can-change-accels respectively /org/gnome/desktop/interface/can-change-accels if you are using Gnome desktop. You can do that with dconf-editor or with this code in terminal:

$ gsettings set org.cinnamon.desktop.interface can-change-accels true

or for Gnome:

$ gsettings set org.gnome.desktop.interface can-change-accels true

Edit or create and add the following line (replacing "F4" with the desired key combination):

, , and can be used as key modifiers (for example, <Primary><Shift>t).

Tips and tricks

Nemo Actions

Nemo allows the user to add new entries to the context menu. The file /usr/share/nemo/actions/sample.nemo_action contains an example of a Nemo action. Directories to place custom action files:

  • for system-wide actions
  • for user actions

Action files must have the file extension.

Meld compare

compare.sh
#!/bin/bash
savedfile=/var/tmp/compare-save-for-later.$USER
comparator=meld
if [ "$1" == "save" ]; then
	shift
	echo "$*" > "$savedfile"
elif [ "$1" == "compare" ]; then
	shift
	"$comparator" "$*" "$(cat $savedfile)"
fi

Filenames containing spaces

By default, Nemo does not escape filenames. This means that actions for multiple files with some names containing spaces are broken. To fix this, use .

Troubleshooting

Thumbnail generation errors shown in the console

By default, nemo does not generate thumbnails for certain video files due to licensing or patent problems (AVC encoded mp4 and mkv files for example). As such, you might see errors similar to the following in the console:

CinnamonDesktop-WARNING **: Error creating thumbnail for file:///home/username/video.mp4: Unrecognized image file format

for mp4 and other video files.

To fix this, ensure that you have a thumbnailer for video files installed—see File manager functionality#Thumbnail previews—and also ensure you have the necessary GStreamer packages installed that will allow the video file to be played.

Desktop icons not shown

Since Nemo v3.4.2, the desktop is managed by nemo-desktop. This can be configured to auto start by copying the file /usr/share/applications/nemo-autostart.desktop to and removing the line .

(GNOME) Opening a single file opens all files

Nemo was changed since v5.0.1 to allow the sort order to be maintained when passing multiple files to the image viewer. There is also a new GNOME setting to enable or disable it.

To fix this, run:

$ gsettings set org.nemo.preferences image-viewers-with-external-sort "[]"

See https://github.com/linuxmint/nemo/issues/2771 for more information.

gollark: Oh, I assumed it would just create a "replying to" link on the post.
gollark: Yes.
gollark: Wow, this templating language is like python but vaguely worse and embedded.
gollark: You can bind it to a form it's not in via thing.
gollark: I guess it could be a radiobutton, non-JSuously.
This article is issued from Archlinux. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.