Skip to content

Commit ad09b70

Browse files
author
Derek
committed
feat: add Nemo file manager as default (Ubuntu + Fedora)
Install Nemo alongside Nautilus and set as default file manager: - Nemo is Linux Mint's fork of Nautilus with more features - Dual-pane mode (F3), tree view, better bulk rename, plugins - Nautilus remains installed for GNOME integration - xdg-mime sets Nemo as default for inode/directory Packages installed: - Ubuntu: nemo, nemo-fileroller (from universe, no PPA needed) - Fedora: nemo, nemo-fileroller, nemo-preview
1 parent 38f3692 commit ad09b70

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

ansible/roles/dfe_developer/tasks/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@
1515
tags: ['desktop']
1616
when: ansible_facts['distribution'] in ['Fedora', 'Ubuntu']
1717

18+
- name: Install Nemo file manager (replaces Nautilus as default)
19+
ansible.builtin.include_tasks:
20+
file: nemo.yml
21+
apply:
22+
tags: ['nemo', 'desktop']
23+
tags: ['nemo', 'desktop']
24+
when:
25+
- ansible_facts['distribution'] in ['Fedora', 'Ubuntu']
26+
- dfe_has_gnome | default(false)
27+
1828
- name: Configure OS repositories (mirrors, performance)
1929
ansible.builtin.include_tasks:
2030
file: repository.yml
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
---
2+
# Nemo File Manager - Linux Mint's fork of Nautilus
3+
# More feature-rich: dual-pane (F3), tree view, plugins, better bulk rename
4+
# https://github.com/linuxmint/nemo
5+
#
6+
# Strategy: Install alongside Nautilus (keeps GNOME integration intact),
7+
# set Nemo as default file manager for user file browsing.
8+
9+
# ============================================================================
10+
# FEDORA
11+
# ============================================================================
12+
13+
- name: Install Nemo file manager (Fedora)
14+
ansible.builtin.dnf:
15+
name:
16+
- nemo
17+
- nemo-fileroller # Archive integration
18+
- nemo-preview # Quick preview with spacebar
19+
state: present
20+
when: ansible_facts['distribution'] == 'Fedora'
21+
22+
# ============================================================================
23+
# UBUNTU
24+
# ============================================================================
25+
26+
# Nemo 6.x available in Ubuntu 24.04 universe - no PPA needed
27+
- name: Install Nemo file manager (Ubuntu)
28+
ansible.builtin.apt:
29+
name:
30+
- nemo
31+
- nemo-fileroller # Archive integration
32+
state: present
33+
when: ansible_facts['distribution'] == 'Ubuntu'
34+
35+
# ============================================================================
36+
# SET AS DEFAULT FILE MANAGER (both distros)
37+
# ============================================================================
38+
39+
# Set Nemo as default for opening directories
40+
# This affects "Open Folder" actions throughout the system
41+
- name: Set Nemo as default file manager
42+
ansible.builtin.command:
43+
cmd: xdg-mime default nemo.desktop inode/directory
44+
become: true
45+
become_user: "{{ dfe_actual_user }}"
46+
changed_when: true
47+
when: ansible_facts['distribution'] in ['Fedora', 'Ubuntu']
48+
49+
# Also set for application/x-gnome-saved-search (saved searches)
50+
- name: Set Nemo as default for saved searches
51+
ansible.builtin.command:
52+
cmd: xdg-mime default nemo.desktop application/x-gnome-saved-search
53+
become: true
54+
become_user: "{{ dfe_actual_user }}"
55+
changed_when: true
56+
failed_when: false
57+
when: ansible_facts['distribution'] in ['Fedora', 'Ubuntu']

0 commit comments

Comments
 (0)