Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to change icon/emblem of a directory from bash

I'm playing around with get_iplayer (fantastic) it's running every few hours to grab any new episodes of whatever....

After it has finished grabbing anything new i'd like to change the emblem of ~/Videos to add a plus or star (nautilus emblem preferably)

Do i go about this via nautilus?
Do i need to change something in gnome-config?
I'm sure this can't be FS level?

Cheers for any links and advice.

like image 740
Question Mark Avatar asked Feb 01 '10 22:02

Question Mark


1 Answers

gvfs-set-attribute ~/Videos -t stringv metadata::emblems new urgent

gvfs-set-attribute -t string $FOLDER metadata::custom-icon file:///home/user/path/to/icon.jpg

like image 200
daijikaijuu Avatar answered Oct 02 '22 19:10

daijikaijuu