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 Sun 21 Dec 2014, 16:54
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Icon Finder v1.4
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Author Message
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Tue 02 Oct 2012, 12:36    Post_subject:  Icon Finder v1.4
Sub_title: Find icons in your system easily
 

Icons in Puppy are located in many, sometimes exotic, places.
This application helps to find them all and display at once.

Icon Finder will be useful, for instance:
- for users who want to easily find icons for new desktop shortcuts,
- for devs in searching for non gtk-stock icons for their apps,
(as a bonus I've included 'Gtk stock icons' viewer too, posted here by Smokey01)

Usage:

1. On the first run there's request to create a new list.
It may take even a few minutes - depends of your system specs and amount of icons.
2. When the list is already created, a window with icons will be displayed (see screenshot).
3. You can hover an icon to see its location and resolution.
4. You can click an icon to locate it via ROX-Filer.
5. If there were changes in your system and want to re-search icons, use 'Menu -> Create new list'.

More info:

Supported formats are: bmp gif ico jpg pcx png ppm pnm svg tga tif xpm
The app is not extensively tested, so I can't say if every variant of the above formats will be processed properly.

The minimum and maximum sizes of icons are set to 0x0-64x64, but it can be edited ('Menu -> Settings'), just remember to adjust the size of buttons too - it must be ~10px larger, to fit icons within...or use 'Scale images' option.

Requirements:

Gtkdialog >= 0.8.0, awk, cut, tr, grep, head, tail, file, exiv2 (or feh), xmessage, xrandr, Xdialog (all should be already included in most/all of modern Puppies)

Known issues:

Icon Finder examines files by extension and, depending on this info, tries to acquire their resolution.
If a file has altered extension (not corresponding to its real type), it won't be processed correctly and therefore not displayed.
BTW, I'm aware of a tool called "identify", but I didn't want to include any external tool that is not already in Puppy.

Files with spaces in filename are processed and displayed correctly, but in some Puppies won't be located via ROX-Filer (rox -s "$FILENAME").
This happens in Slacko-5.3.3, but not in Lupu-528; must be caused by different ROX versions...
EDIT: I've found the problem, it's /usr/local/bin/rox
If you're on Slacko 5.3.3 and the problem bothers you, open the above file and add double quotes, as shown below:
Code:
exec /usr/local/apps/ROX-Filer/AppRun "${@#*file://}"


Slowness...
Even if the list is already created it takes a while to bring up the GUI (but hey, there is usually 1200+ icons to display!).
The same happens during window resizing, so it's not recommended.

If there's too many icons to display (~9000 in my tests) IconFinder/Gtkdialog just can't handle it and crashes...

In Lupu-528 (and its derivatives) when IconFinder is launched through right click menu entry and the displayed list of icons is too long (height counts) it may not work properly.
Workarounds:
- always run IconFinder through bottom left menu (Openbox) or shortcut on the pinboard, Wbar, etc.
- increase the number of columns (this will decrease the height)

_______________________

EDIT:
Uploaded new version with menu entry fix for Precise, see this post for details.
Uploaded version 1.1 with few fixes and additions, see this post for details.
Uploaded version 1.2, see this post for details.
Uploaded version 1.3, see this post for details.
Uploaded version 1.3.1, see this post for details.
Uploaded version 1.4, see this post for details.
_______________________

iconfinder_NLS-1.4.pet contains the following translations:
- Polish (me)
_______________________

Written on Slacko-5.3.3/5.5

Have fun &
Greetings!
iconfinder_NLS-1.4.pet
Description  Langpack for iconfinder-1.4 (so far only pl)
pet

 Download 
Filename  iconfinder_NLS-1.4.pet 
Filesize  2.37 KB 
Downloaded  406 Time(s) 
iconfinder-1.4.pet
Description  Icon Finder v1.4
pet

 Download 
Filename  iconfinder-1.4.pet 
Filesize  10.38 KB 
Downloaded  430 Time(s) 
iconfinder-1.3.1.pet
Description  Icon Finder v1.3.1
pet

 Download 
Filename  iconfinder-1.3.1.pet 
Filesize  10.07 KB 
Downloaded  550 Time(s) 
iconfinder-1.3.pet
Description  Icon Finder v1.3
pet

 Download 
Filename  iconfinder-1.3.pet 
Filesize  9.74 KB 
Downloaded  686 Time(s) 
iconfinder-1.2.pet
Description  Icon Finder v1.2
pet

 Download 
Filename  iconfinder-1.2.pet 
Filesize  9.37 KB 
Downloaded  712 Time(s) 
screenshot.jpg
 Description   
 Filesize   67.19 KB
 Viewed   2067 Time(s)

screenshot.jpg


_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.

Edited_times_total
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Wed 03 Oct 2012, 12:12    Post_subject:  

Fixes in v1.0b1:

1. Redesigned GUI.
I had to resign of the drop down menu because there's a following problem with Gtkdialog-0.8.0.
It seems that if there are <menubar><menu><menuitem>... tags used in the GUI, then if one close such a window using 'X' and not through "Quit" option, the process remains active and previously allocated memory isn't freed (according to ps, htop and free commands).
...and the app is very resource hungry, so it is a problem.
If a GUI doesn't have menu everything's fine, so I used buttons instead...
BTW, I've tested the app with the latest Gtkdialog-0.8.2 and the problem didn't pop up there.

2. Changed the default max. icon res. from 48x48 to 64x64.

3. Tuned "Scale images" option.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: Wed 03 Oct 2012, 16:50    Post_subject:  

Hi SFR,
I have added this to the list of programs using gtkdialog.
Do you have any other programs you can add?
Thanks.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Wed 03 Oct 2012, 17:34    Post_subject:  

Hey Disciple.

Yup, there's a few more; I've added them to your thread.

Thanks & Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
disciple

Joined: 20 May 2006
Posts: 6464
Location: Auckland, New Zealand

PostPosted: Thu 04 Oct 2012, 18:15    Post_subject:  

Great, thanks. The text encryption one looks pretty cool Smile
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 09 Oct 2012, 17:46    Post_subject:  

Ok.

I wish this application would happen earlier - much earlier. I like this and so I have made an sfs from this one and do use it from sfs in LazY Puppy.

I like this that much, so i have made an icon for it.

Hope you like this.

RSH
iconfinder.png
 Description   
 Filesize   3.08 KB
 Viewed   2099 Time(s)

iconfinder.png


_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Tue 09 Oct 2012, 18:18    Post_subject:  

SFR wrote:
Fixes in v1.0b1:

1. Redesigned GUI.
I had to resign of the drop down menu because there's a following problem with Gtkdialog-0.8.0.
It seems that if there are <menubar><menu><menuitem>... tags used in the GUI, then if one close such a window using 'X' and not through "Quit" option, the process remains active and previously allocated memory isn't freed (according to ps, htop and free commands).
...and the app is very resource hungry, so it is a problem.
If a GUI doesn't have menu everything's fine, so I used buttons instead...
BTW, I've tested the app with the latest Gtkdialog-0.8.2 and the problem didn't pop up there.

2. Changed the default max. icon res. from 48x48 to 64x64.

3. Tuned "Scale images" option.

Greetings!

Hi, SFR.

If you want to use a menu in a gtkdialog gui and want to make sure the application does not remain active, insert the following code (the first line) to the script (</window> shows where to insert).
Code:
<action signal=\"hide\">exit:abort</action>
</window>" # End - Main GUI


Greetings,

RSH

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Wed 10 Oct 2012, 09:28    Post_subject:  

RSH wrote:
I like this that much, so i have made an icon for it.

Hope you like this.

Sure I do like! Me personally can't draw a straight line, so I always appreciate such a help.
Your icon has been included.

RSH wrote:
Code:
<action signal=\"hide\">exit:abort</action>

It works, thanks a lot!
So, the menu is back. Cool

(NOTE: If you have installed the new version over the old one, you have to rescan icons to see the new GUI).

Thanks & Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 10 Oct 2012, 15:57    Post_subject:  

Redraw issue in iconfinder?

I have 4817 icons in LazY Puppy. At scroll-down redraw "crashes".


Is it the iconfinder or is it gtkdialog?

Maybe this could be solved using gtkdialog object notebook (tabs)? One tab for icons smaller 48 pixel and another tab for icons equal and bigger than 48 pixel.

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Wed 10 Oct 2012, 16:24    Post_subject:  

Not sure...
I just loaded 6499 icons and have not such a problem (except initial slowness).
If there's a lot of icons to display, actions like resizing or maximizing can give an illusion of hanging up, but after longer pause things back to normal...

BTW, how much RAM do you have?
For those 6499 images IconFinder has stolen ~155M of mem.

EDIT:
Done a quick test with <notepad>.
Disaster - it's painfully slow during switching tabs (same behaviour as during resizing).
And the RAM consumption is the same, no difference.
It's not a way, unfortunately...
But thanks for a suggestion.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Wed 10 Oct 2012, 17:33    Post_subject:  

System Information wrote:
Current Time: 23:17:15
System Uptime: 6 hr 54 min
Load Average: 0.12 0.17 0.17

Motherboard Vendor:
Product Name: 4CoreDual-SATA2.

Operating System: LazY Puppy 202
Desktop Panel: tint2 version 0.11-svn
Desktop Window Manager: Openbox 3.4.11
Desktop Start: xwin openbox

=== CENTRAL PROCESSOR ===

Pentium(R) Dual-Core CPU E5200 @ 2.50GHz
Socket Designation: CPUSocket
Manufacturer: Intel
Voltage: 1.2 V
External Clock: 200 MHz
Max Speed: 2400 MHz
Current Speed of Core 0: 2494 MHz, Core 1: 2494 MHz

=== COMPUTER MEMORY ===

Memory Module 1
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Locator: DIMM0
Type: SDRAM
Type Detail: Synchronous
Speed: Unknown

Memory Module 2
Data Width: 64 bits
Size: 512 MB
Form Factor: DIMM
Locator: DIMM1
Type: SDRAM
Type Detail: Synchronous
Speed: Unknown


_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Wed 10 Oct 2012, 19:10    Post_subject:  

Quote:
=== COMPUTER MEMORY ===

Memory Module 1
Data Width: 64 bits
Size: 1024 MB
Form Factor: DIMM
Locator: DIMM0
Type: SDRAM
Type Detail: Synchronous
Speed: Unknown

Memory Module 2
Data Width: 64 bits
Size: 512 MB
Form Factor: DIMM
Locator: DIMM1
Type: SDRAM
Type Detail: Synchronous
Speed: Unknown

1.5GB of RAM, so it's not the cause. I've tested IconFinder with 1GB successfully.
To ensure, I launched the app in Lupu-528 (on which LazY is based) under Openbox, loaded about 9000* of images...and despite long waiting to load them all, still OK.
Sorry, just can't recreate it...

Perhaps there's a certain image, which interfere with Gtkdialog and makes it crashes..?
To eliminate or confirm this, you could, for instance, do such a thing:

1. Launch Iconfinder, let it crash.
2. Open /root/.icon_finder/list file.
There's a a code like:
Code:
<window..>
...some other stuff...

# and lots of blocks of code like:

<hbox...>
<button........</button>
<button........</button>
<button........</button>
...
</hbox>

# and so on...

...other stuff again...
</window>


3. Make a backup of this file.
3a. Remove a half (approximately) of all these <hbox>...</hbox> blocks from the beginning of the file, run Iconfinder and see if it hangs.
3b. Recreate the original list from backup, but this time remove a half of blocks from the bottom and see again if it hangs.

Just make sure to remove full blocks of <hbox>....</hbox>

Maybe this will say something to us, because I'm out of ideas...


*) ~9000 it's near the limit, more produces gtk error, btw.

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Sat 13 Oct 2012, 10:50    Post_subject:  

@RSH:
I just downloaded your latest LazY (great splash-screen, btw!)...and experienced this "crash" at last (5076 icons).

Here's what I've noticed, perhaps it gives you some clues:

When I launched IconFinder from the menu entry, it stopped displaying icons indeed, approximately at ~70% of scrollbar's lenght.
Additionaly, scrollbar was, let's say, "jumpy".

However when I launched IconFinder from terminal window (but only ROX-Term, because urxvt gives the same effect!), the problem just gone, everything worked fine, without "crashes" and scrollbar was moving smoothly.

Weird, isn't it? Shocked

HTH
Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
SFR


Joined: 26 Oct 2011
Posts: 1118

PostPosted: Sat 13 Oct 2012, 18:36    Post_subject:  

Update: version 1.0b3

I just noticed that the latest Barry's Precise (beta 7) has Bash v3.00 and IconFinder was written using Bash v4.1.0

But it was enough to change just one line and now it works in this Puppy, too.

NOTICE: if anyone tried to launch IconFinder on Precise before and have installed corrected version now, it's necessary to delete /root/.icon_finder directory or else app will not start.

Summarizing, IconFinder has been tested and works on the following Puppies, so far:
- Slacko-5.3.3
- Lupuplus-528.005-1
- LazYPuppy-2.0.2-Final (with problems, see the previous posts)
- Precise-5.3.95.1 (beta 7)

Greetings!

_________________
[O]bdurate [R]ules [D]estroy [E]nthusiastic [R]ebels => [C]reative [H]umans [A]lways [O]pen [S]ource
Omnia mea mecum porto.
Back to top
View user's profile Send_private_message 
RSH


Joined: 05 Sep 2011
Posts: 2420
Location: Germany

PostPosted: Sat 13 Oct 2012, 19:37    Post_subject:  

Hi, SFR.

The issue with iconfinder in LazY Puppy seems not to depend on the numbers of icons. I have reproduced this right now with a count of 3910 icons ---> free RAM is about 990 MB.

Everything works fine if using 12 columns instead of 8 columns!

LazY Puppy has installed gtkdialog4 (0.8.0) ---> which version of gtkdialog4 do you use?

SFR wrote:
Weird, isn't it? Shocked

Yes, that's weird. Shocked

_________________
LazY Puppy
RSH's DNA
SARA B.
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 3 Posts_count   Goto page: 1, 2, 3 Next
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Graphics
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1118s ][ Queries: 13 (0.0120s) ][ GZIP on ]