this post was submitted on 25 Feb 2026
5 points (100.0% liked)

Linux

65009 readers
392 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 7 years ago
MODERATORS
 

In Windows placing .icon with this .ini file works-

[.ShellClassInfo]
IconResource=.FolderIcon.ico
IconFile=.FolderIcon.ico
IconIndex=0
InfoTip=
[ViewState]
Mode=
Vid=
you are viewing a single comment's thread
view the rest of the comments
[–] Sonotsugipaa@lemmy.dbzer0.com 7 points 2 months ago* (last edited 2 months ago) (3 children)

Not sure how it works on other file managers (or any DE), but for Dolphin you can create a .directory file with its content like:

[Desktop Entry]
Icon=/absolute/path/to/image.png

I think it's more or less universal.

Specifically for Dolphin, there may be a way to achieve the same with extended file attributes (getfattr/setfattr) instead of directories, but I don't know the attr name for icons if it even exists.

[–] tdTrX@lemmy.ml 0 points 1 month ago (1 children)

Not working on Mint (cinnamon+nemo)

[–] Sonotsugipaa@lemmy.dbzer0.com 1 points 1 month ago

A quick search tells me you need to open the directory's properties dialog and click on the icon on the top left; if you want to set directory icons programmatically maybe you can do that, then try and see what Nemo does in order to change it?

Otherwise I'm afraid you'll need to seek some documentation for Nemo or GNOME Files (since the former is a fork of the latter), or at worst, Nemo's code itself.

load more comments (1 replies)