Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 19 Apr 2014, 11:53
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
About globicons... [SOLVED]
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
Argolance


Joined: 06 Jan 2008
Posts: 1778
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 05 Jul 2012, 10:53    Post subject:  About globicons... [SOLVED]  

Hello,
Don't know if it is the right place to ask this question...
When and by what is the file "globicons" created/updated? I red somewhere that this file comes here or there, following the puppy version and age...
Sometime inside /root/.config/rox.sourceforge.net/ROX-Filer/globicons or inside /root/Choices/ROX-Filer/globicons, sometimes both of these directories. Shocked

Please, could somebody give me some explanation?

Thank you a lot.
Cordialement.

_________________


Last edited by Argolance on Fri 06 Jul 2012, 05:53; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2169

PostPosted: Thu 05 Jul 2012, 12:59    Post subject:  

It gets created the first time you change the icon displayed for any file or folder. The latter file location you mention, '/root/Choices/ROX-Filer/globicons' is for older versions of the ROX-Filer. /root/.config/rox.sourceforge.net/ROX-Filer/globicons is for newer versions of rox.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1778
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Thu 05 Jul 2012, 13:36    Post subject:  

Hello amigo,
Thank you for replying!
Quote:
It gets created the first time you change the icon displayed for any file or folder.
What kind of file or folder? For example, I drag and drop a file or a directory from any rox window to the desktop, then I define the icon... I don't see any changes inside /root/.config/rox.sourceforge.net/ROX-Filer/globicons? Puppypin has naturally changed but not globicons. Sorry for my simple-minded question... Embarassed

Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
RSH


Joined: 05 Sep 2011
Posts: 2036
Location: Germany

PostPosted: Thu 05 Jul 2012, 16:26    Post subject:  

Hi.

Here is a script, i do use in LazY Puppy to set an icon automatically to a created LazY Puppy run-script (the scripts that runs applications from sfs and loads the sfs automatically)

Code:
#!/bin/sh
# LazY Puppy Run-Scripts Icon Setter
# set icon to a run-script # --> thanks to stu90
#------------------------------------------------------------------------------
FILE=$1
ICON=$2

head -n -1 /root/.config/rox.sourceforge.net/ROX-Filer/globicons > /tmp/globicons

cat >> /tmp/globicons << EOF
  <rule match="$FILE">
    <icon>$ICON</icon>
  </rule>
</special-files>
EOF

rm -f /root/.config/rox.sourceforge.net/ROX-Filer/globicons
cp -f /tmp/globicons /root/.config/rox.sourceforge.net/ROX-Filer/globicons

# End

I have also refined the LazY Puppy remaster script to have the exactly same content in both "globicons" files.

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send private message 
Keef


Joined: 20 Dec 2007
Posts: 562
Location: Staffordshire

PostPosted: Thu 05 Jul 2012, 18:00    Post subject:  

I've found Amigo's explanation to be correct. Changing an icon is producing a change in globicons. This is on Wary 5.3.
Can I ask how you are checking for changes?
I opened up globicons in Geany. I added an icon to a binary I dumped on the desktop, then did a search for it (in Geany), and checked the name of the icon.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2169

PostPosted: Fri 06 Jul 2012, 05:01    Post subject:  

globicons data is for filer windows -desktop icons are in the pinboard conf file.
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 1778
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Fri 06 Jul 2012, 05:52    Post subject:  

Hello,
Thank you for replying.

Now I understand. If I change or set the icon of any /usr/bin/defaultprogram (for example), modification is saved to globicons.

What embarrassed me is that latest Wary/Racy5 don't have globicons file inside /root/.config/rox.sourceforge.net/ROX-Filer/ according to the newest rox releases, but inside /root/Choices/ROX-Filer/globicons.

Thank you RSH for the script which can be useful!
Fortunately, it seems that when rox doesn't find globicons inside .config it tries to search it inside Choices. The contrary is not true though! Here was a lack of understanding for me.
Quote:
Can I ask how you are checking for changes?
Edit globicons with geany: When changed, geany asks for reloading the file or, looking inside the directory containing the file, its name is in bold characters...

=> Found this, which could be useful to learn more about globicons file(s)

Thank you to all of you!
Cordialement.

_________________

Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0521s ][ Queries: 12 (0.0042s) ][ GZIP on ]