I replaced some of the folders in my home directory with symlinks and it changed their sidebar icons to a default folder.
By default, Mint comes with some folders in your home directory for different types of files. I made symlinks for Documents, Music, Pictures, and Video to directories on an external USB drive. Mostly, everything works great but I lost the special icons in Nemo. For the big icons in the main part of the Nemo window, this wasn't a problem. For each folder, I went to its Properties, and changed them to the icons I found in /usr/share/icons
But the small icons under "My Computer" on the left are still default folder icons. I can't find a way to change them. I've attached a screenshot.
Admittedly, this is a small problem, but the icons help me find what I need quickly.
Restore nemo sidebar icons after linking the folders [SOLVED]
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Restore nemo sidebar icons after linking the folders [SOLVED]
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Linux newbie since 1997
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Restore nemo sidebar icons after linking the folders
What's the output of
cat ~/.config/user-dirs.dirs
?For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Restore nemo sidebar icons after linking the folders
user-dirs.dirs is pasted below.
I had totally forgotten, in trying to fix this problem, I had edited this file to change to the directories' absolute paths. I didn't seem to make any difference one way or another. Browsing the directories works, the icons don't work.
You can see I commented out the original default lines.
I had totally forgotten, in trying to fix this problem, I had edited this file to change to the directories' absolute paths. I didn't seem to make any difference one way or another. Browsing the directories works, the icons don't work.
You can see I commented out the original default lines.
Code: Select all
# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you're
# interested in. All local changes will be retained on the next run.
# Format is XDG_xxx_DIR="$HOME/yyy", where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR="/yyy", where /yyy is an
# absolute path. No other format is supported.
#
# Some values below changed by Matt
XDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
# XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_DOCUMENTS_DIR="/mnt/sdb2/Dropbox/Matt_documents"
# XDG_MUSIC_DIR="$HOME/"
XDG_MUSIC_DIR="/media/matt/Fantom_3TB/Music"
# XDG_PICTURES_DIR="$HOME/Pictures"
XDG_PICTURES_DIR="/mnt/sdb2/Dropbox/Camera\ Uploads"
# XDG_VIDEOS_DIR="$HOME/"
XDG_VIDEOS_DIR="/media/matt/Fantom_3TB/Videos"
Linux newbie since 1997
- smurphos
- Level 18
- Posts: 8498
- Joined: Fri Sep 05, 2014 12:18 am
- Location: Irish Brit in Portugal
- Contact:
Re: Restore nemo sidebar icons after linking the folders
Mmm,
Try changing the paths in
BTW the easiest way to replace the regular folders with symlinks is to make sure the folder in question is empty before pasting over a pre-prepared symlink from another location with the same name as the folder and merging. That maintains the correct folder icons in the file manager and the bookmarks with no messing around. The xdg and bookmark files can then stay in their default state.
Try changing the paths in
~/.config/gtk-3.0/bookmarks
to match the XDG paths...BTW the easiest way to replace the regular folders with symlinks is to make sure the folder in question is empty before pasting over a pre-prepared symlink from another location with the same name as the folder and merging. That maintains the correct folder icons in the file manager and the bookmarks with no messing around. The xdg and bookmark files can then stay in their default state.
For custom Nemo actions, useful scripts for the Cinnamon desktop, and Cinnamox themes visit my Github pages.
Re: Restore nemo sidebar icons after linking the folders
Thanks smurphos !
Changing the bookmarks file worked perfectly. Almost. "/mnt/sdb2/Dropbox/Camera\ Uploads/" wouldn't parse correctly due to the space. The folder name is set by Dropbox so I can't change it without changing the camera settings on all my devices. After some googling, I figured out to replace "\ " with "%20"
Now the bookmark works but the icon is back to the default. I think 3/4 is good enough for now, and I'm going to mark this as "solved."
Changing the bookmarks file worked perfectly. Almost. "/mnt/sdb2/Dropbox/Camera\ Uploads/" wouldn't parse correctly due to the space. The folder name is set by Dropbox so I can't change it without changing the camera settings on all my devices. After some googling, I figured out to replace "\ " with "%20"
Now the bookmark works but the icon is back to the default. I think 3/4 is good enough for now, and I'm going to mark this as "solved."
Linux newbie since 1997