Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Enable Folder Colors in Ubuntu Linux

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Yes, you can enable folder colors in Ubuntu and most Ubuntu-based distributions. The easiest way is to install a small extension called Folder Color, which adds color options to the right-click menu in the file manager. This guide covers installation for both GNOME Files (Nautilus) and Caja (MATE), plus how to change colors and fix common issues.

What You'll Need

  • An Ubuntu-based Linux distribution (Ubuntu, Linux Mint, Pop!_OS, etc.)
  • An active internet connection
  • Access to a terminal (Ctrl+Alt+T)
  • Your user password for sudo commands

Step-by-Step

For GNOME Files (Nautilus) – Default on Ubuntu

  1. Open a terminal by pressing Ctrl+Alt+T.
  2. Update your package list: sudo apt update
  3. Install the Folder Color package: sudo apt install folder-color
  4. Restart Nautilus so the extension loads: nautilus -q (this closes all Nautilus windows; they will reopen automatically when you open a folder).
  5. Open the file manager (Files) and right-click any folder. You should see a Color submenu with a palette of options like red, green, blue, yellow, and more. Click a color to apply it.
  6. To remove the color, right-click the folder, go to Color, and select Default (or the option that says “None”).

For Caja (MATE) – Default on Linux Mint MATE

  1. Open a terminal.
  2. Update your package list: sudo apt update
  3. Install the Caja extension: sudo apt install caja-folder-color
  4. Restart Caja: caja -q
  5. Open the file manager and right-click a folder. Choose Color and pick a color.

For Dolphin (KDE) – If You Use Kubuntu

  1. Open a terminal.
  2. Install the Dolphin plugin: sudo apt install dolphin-plugins
  3. Restart Dolphin (close and reopen it).
  4. Right-click a folder, select Actions > Set Folder Color, and choose a color.

Note: Menu labels can differ slightly depending on your distribution version and file manager version. If you don’t see a “Color” option right away, look for “Folder Color” or “Set Folder Color”.

Common Mistakes

  • Installing the wrong package – For Nautilus, the package is folder-color. For Caja, it is caja-folder-color. Installing the wrong one won’t work.
  • Not restarting the file manager – The extension won’t appear until you restart Nautilus or Caja. The -q command does this, but if you skip it, you won’t see the option.
  • Using a file manager other than Nautilus/Caja/Dolphin – If you use Thunar (XFCE) or Nemo (Cinnamon), these packages won’t help. For Nemo, you can try nemo-folder-color (available in some repos), but it may not be official. For Thunar, there is no official folder color plugin; consider using custom icon themes instead.
  • Running the command without sudo – apt requires root privileges. Use sudo.

Tips

  • If you want more color choices or custom colors, look for a package called folder-color-common which provides additional color options in some versions.
  • You can also change folder colors by right-clicking and selecting Properties > Folder Color if the extension is installed but the right-click menu doesn’t show it (rare, but happens).
  • To apply the same color to multiple folders at once, select multiple folders (Ctrl+click), right-click, and choose a color—it will apply to all selected.
  • Colors are stored as emblems in the file system metadata, so they survive reboots and are visible to other users on the same system.

Troubleshooting

If the color option doesn’t appear after installation, try these steps in order:

  1. Restart the file manager again – Sometimes the first restart doesn’t pick up the extension. Run nautilus -q (or caja -q) and reopen Files.
  2. Check if the extension is enabled – For Nautilus, run nautilus --version to confirm it’s version 3.x. Then run nautilus -q and try again. If still missing, run gsettings set org.gnome.nautilus show-extension-toolbar true (this is not always needed, but some versions hide the extension).
  3. Log out and back in – A full session restart can reload all extensions.
  4. Reinstall the package – Run sudo apt install --reinstall folder-color (or caja-folder-color) and restart.
  5. Check for conflicting extensions – If you have other file manager extensions installed, they might interfere. Temporarily disable them by removing or renaming files in ~/.local/share/nautilus-python/extensions/ (or the Caja equivalent) and restart.
  6. If you’re using Ubuntu 22.04 or later – The Folder Color extension may not be compatible with the latest Nautilus due to changes in the API. In that case, you can use a custom icon theme that includes colored folders (search for “folder color icon theme” in your package manager). This is a reliable alternative.

Frequently Asked Questions

Does Folder Color work on all Ubuntu versions?

It works on most versions up to Ubuntu 21.10. On Ubuntu 22.04 and later, the extension may not work due to changes in Nautilus. Check your version and test; if it fails, use a custom icon theme instead.

Can I use custom colors, not just the preset ones?

The standard extension provides a fixed palette (red, orange, yellow, green, blue, purple, etc.). Custom hex colors are not supported. For more variety, you can manually edit the folder’s emblem using a tool like gvfs-set-attribute but that is advanced.

Will folder colors sync across devices?

No, folder colors are stored locally in the file system metadata. They are not synced via cloud accounts.

Does this work on Linux Mint Cinnamon?

Linux Mint Cinnamon uses Nemo as its file manager. There is a package called nemo-folder-color in some repositories, but it is not officially maintained. If it doesn’t work, consider using a custom icon theme.

Can I color individual files, not just folders?

No, the extension only works on folders. Files do not have color options.

Will the colors be visible in the terminal (e.g., ls command)?

No, terminal commands like ls do not display folder colors. The colors only appear in the graphical file manager.