.Diricon/icon display mismatch

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

.Diricon/icon display mismatch

Post by JASpup »

system is the bottom folder and highlighted desktop launcher. The icon is the moblin-stark wrench.

The top folder contains the system folder.

The .Diricon in the system directory is the knight.

Should the diplayed icon be the .Diricon in that directory?

Attachments
Diricon-system.png
Diricon-system.png (76.2 KiB) Viewed 235 times

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: .Diricon/icon display mismatch

Post by williams2 »

If a dir has a file in it that is named .DirIcon
and the .DirIcon file is displayable as an icon
and you view a rox window showing the location of that dir
then the icon of that dir will be the picture in .DirIcon

If you right click a dir and select set icon
and drag an icon picture to the set icon box
then rox will copy the icon picture file to the dir and name it .DirIcon

If there is already a .DirIcon file in the dir, rox will overwrite it with the new icon file.

If there is already a symlink named .DirIcon in the dir
then rox will overwrite the icon file that the symlink is pointing to.

For example, the attached picture shows dir aa and dir bb in /tmp/
A file go48.png was copied to aa and symlinked to .DirIcon
Empty dir bb was right clicked and Set Icon was clicked.

In the attached picture, the left window is /tmp/

icon.jpg
icon.jpg (107.8 KiB) Viewed 227 times
User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: .Diricon/icon display mismatch

Post by JASpup »

williams2 wrote: Thu Dec 23, 2021 6:53 am

For example, the attached picture shows dir aa and dir bb in /tmp/
A file go48.png was copied to aa and symlinked to .DirIcon
Empty dir bb was right clicked and Set Icon was clicked.

I'm familiar and setting icons daily with Set Icon... The copy and symlink techniques are new to me.

Does my initial post example make sense? How would a folder set and displaying as a wrench have a knight .DirIcon?

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

williams2
Posts: 1062
Joined: Sat Jul 25, 2020 5:45 pm
Been thanked: 305 times

Re: .Diricon/icon display mismatch

Post by williams2 »

How would a folder set and displaying as a wrench have a knight .DirIcon?

If you want RoxFiler to show your own icon when it shows particular folder
you can copy the icon file to that dir.

Or you can set the icon for that particular dir
by right clicking the dir and selecting set Icon in the menu.
The will create or overwrite the file named .DirIcon
If .DirIcon is a symlink to a icon picture file,
then rox will overwrite the target of the symlink, which you might or might not want.

Basically, if you click Set Icon on a dir,
rox will copy your picture to the dir and name the file .DirIcon

in your case, in a rox window that is showing your system dir
you can right click the dir, select Set Icon
and drag your Knight.jpg to the drop an icon here window,
and rox will copy the Knight.jpg file to the dir named system.
and rox will show your icon for the dir, instead of the default icon.

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: .Diricon/icon display mismatch

Post by JASpup »

When I play around copying icons instead of using Set Icon... it will probably become more clear.

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

User avatar
JASpup
Posts: 1653
Joined: Sun Oct 04, 2020 10:52 am
Location: U.S.A.
Has thanked: 70 times
Been thanked: 89 times

Re: .Diricon/icon display mismatch

Post by JASpup »

@williams2 is it possible to use the Roxfiler Set Icon... command cli?

On the Whiz-Neophyte Bridge
Linux Über Alles
Disclaimer: You may not be reading my words as posted.

Post Reply

Return to “Users”