Where are the shared icons located?

Using applications, configuring, problems
Message
Author
User avatar
TwoPuppies
Posts: 77
Joined: Wed 29 Dec 2010, 05:13
Location: Melbourne, Australia

gtkrefresh for Xenial

#61 Post by TwoPuppies »

Mike Walsh wrote:When you say 'a newer version of gtkrefresh', are you talking about a specific binary, or something similar? ...Or are we here talking about a specific script, perhaps?
Here is what I know about gtkrefresh:

The version in Lucid is a binary file, and is located at /usr/bin/gtkrefresh
No equivalent version exists in Slacko or Xenial (or presumably any other recent Puppies).
(Not to be confused with gtk-refresh, which is just a GTK stock icon.)

Its uses include the following:
If you put these three lines in a script...

Code: Select all

sed -i '2d' /root/.gtkrc-2.0
sed -i '2i\include "/usr/share/themes/Clearlooks-Smoke/gtk-2.0/gtkrc"\' /root/.gtkrc-2.0
exec /usr/bin/gtkrefresh &
The first two lines will select the GTK Clearlooks theme "Clearlooks-Smoke", and then the third line (using gtkrefresh) will apply the theme.
In other words, line 3 has the same effect as pressing the OK or Apply buttons in Chtheme (the GTK Theme Chooser interface), but with the added advantage that it can be called from a script.

gtkrefresh is provided earlier in this thread by Mark (forum member MU). So I guess he is really the person to whom we should be talking. I have no idea if Mark is still active on the Forum. Sometimes people just seem to vanish. I am assuming that Mark created gtkrefresh, although I might be wrong about that. He provides some details about it in this post a couple of pages back. There is a download link for it here, so you can download it and have a look at it. He also provides a link to another thread where the source code for gtkrefresh can be accessed.

As I said in my first post, Mark's version of gtkrefresh does not work in Xenial, and what I am after is an up-to-date version of his binary file that is compatible with more recent Puppies (such as Xenial). If Mark did make the original we might be able to prevail on him to make us a new one.
Last edited by TwoPuppies on Sun 16 Sep 2018, 09:38, edited 2 times in total.
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]

User avatar
mikeslr
Posts: 3890
Joined: Mon 16 Jun 2008, 21:20
Location: 500 seconds from Sol

#62 Post by mikeslr »

Unfortunately, gtkrefresh is a compiled binary. Unlike a bash-script, you can't just change it or re-write it using whatever version of bash is currently installed on your operating system. You have to compile it; and to do so you have to obtain the source file and know what compiling instructions are needed.

User avatar
Mike Walsh
Posts: 6351
Joined: Sat 28 Jun 2014, 12:42
Location: King's Lynn, UK.

#63 Post by Mike Walsh »

Mm.....

Y'know, I have a sneaking suspicion, looking at it, that that source code might have been written with Puppy 2/3/4 in mind. I wouldn't even want to hazard a guess as to whether a modern gcc, compiler, bin-utils, etc, could even do anything with it, since Puppy's code has changed quite a lot since those early days.

Added to which fact Mark Ulrich hasn't been seen on the forum in years. He's still in the Members list - but all his content and other references have been wiped, so there is no way of contacting him (unless you happened to have a current e-mail addy, and were keeping in regular contact with him).

Mike. :wink:

User avatar
TwoPuppies
Posts: 77
Joined: Wed 29 Dec 2010, 05:13
Location: Melbourne, Australia

gtkrefresh for Xenial

#64 Post by TwoPuppies »

That's a shame. Anyway, at least you have given me a definitive answer. Thanks to both of you for your replies.
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]

User avatar
TwoPuppies
Posts: 77
Joined: Wed 29 Dec 2010, 05:13
Location: Melbourne, Australia

gtkrefresh for Xenial

#65 Post by TwoPuppies »

OK, well after a great deal of searching it turns out that there is a more up-to-date version of gtkrefresh that works in Xenial. It's called pGtk-theme-refresh-1.1 and is provided by forum member Trio.

Here's the forum thread:
http://www.murga-linux.com/puppy/viewtopic.php?p=811270

Download the PET:
Attachments
pGtk-theme-refresh-1.1.pet
/usr/bin/pGtkthemerefresh
(3.62 KiB) Downloaded 83 times
[color=#006699]What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.[/color]

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#66 Post by Argolance »

Bonjour,
I'm raising this thread almost two years later. Lots of messages but not really found the answer that should fit in one line. This little script, present in the gtkdialog doc examples, displays a set of standard icons used by many applications:

Code: Select all

#!/bin/sh

GTKDIALOG=gtkdialog

MAIN_DIALOG='
<window>W
	<vbox>
		<frame Stock ID examples>
			<tree rules-hint="true">
				<height>400</height>
				<width>250</width>
				<label>Stock ID</label>
				<item stock-id="gtk-dialog-authentication">gtk-dialog-authentication</item>
				<item stock-id="gtk-dialog-info">gtk-dialog-info</item>
				<item stock-id="gtk-dialog-warning">gtk-dialog-warning</item>
				<item stock-id="gtk-dialog-error">gtk-dialog-error</item>
				<item stock-id="gtk-dialog-question">gtk-dialog-question</item>
				<item stock-id="gtk-dnd">gtk-dnd</item>
				<item stock-id="gtk-dnd-multiple">gtk-dnd-multiple</item>
				<item stock-id="gtk-about">gtk-about</item>
				<item stock-id="gtk-add">gtk-add</item>
				<item stock-id="gtk-apply">gtk-apply</item>
				<item stock-id="gtk-bold">gtk-bold</item>
				<item stock-id="gtk-cancel">gtk-cancel</item>
				<item stock-id="gtk-cdrom">gtk-cdrom</item>
				<item stock-id="gtk-clear">gtk-clear</item>
				<item stock-id="gtk-close">gtk-close</item>
				<item stock-id="gtk-color-picker">gtk-color-picker</item>
				<item stock-id="gtk-convert">gtk-convert</item>
				<item stock-id="gtk-connect">gtk-connect</item>
				<item stock-id="gtk-copy">gtk-copy</item>
				<item stock-id="gtk-cut">gtk-cut</item>
				<item stock-id="gtk-delete">gtk-delete</item>
				<item stock-id="gtk-directory">gtk-directory</item>
				<item stock-id="gtk-disconnect">gtk-disconnect</item>
				<item stock-id="gtk-edit">gtk-edit</item>
				<item stock-id="gtk-execute">gtk-execute</item>
				<item stock-id="gtk-file">gtk-file</item>
				<item stock-id="gtk-find">gtk-find</item>
				<item stock-id="gtk-find-and-replace">gtk-find-and-replace</item>
				<item stock-id="gtk-floppy">gtk-floppy</item>
				<item stock-id="gtk-fullscreen">gtk-fullscreen</item>
				<item stock-id="gtk-goto-bottom">gtk-goto-bottom</item>
				<item stock-id="gtk-goto-first">gtk-goto-first</item>
				<item stock-id="gtk-goto-last">gtk-goto-last</item>
				<item stock-id="gtk-goto-top">gtk-goto-top</item>
				<item stock-id="gtk-go-back">gtk-go-back</item>
				<item stock-id="gtk-go-down">gtk-go-down</item>
				<item stock-id="gtk-go-forward">gtk-go-forward</item>
				<item stock-id="gtk-go-up">gtk-go-up</item>
				<item stock-id="gtk-harddisk">gtk-harddisk</item>
				<item stock-id="gtk-help">gtk-help</item>
				<item stock-id="gtk-home">gtk-home</item>
				<item stock-id="gtk-index">gtk-index</item>
				<item stock-id="gtk-indent">gtk-indent</item>
				<item stock-id="gtk-info">gtk-info</item>
				<item stock-id="gtk-unindent">gtk-unindent</item>
				<item stock-id="gtk-italic">gtk-italic</item>
				<item stock-id="gtk-jump-to">gtk-jump-to</item>
				<item stock-id="gtk-justify-center">gtk-justify-center</item>
				<item stock-id="gtk-justify-fill">gtk-justify-fill</item>
				<item stock-id="gtk-justify-left">gtk-justify-left</item>
				<item stock-id="gtk-justify-right">gtk-justify-right</item>
				<item stock-id="gtk-leave-fullscreen">gtk-leave-fullscreen</item>
				<item stock-id="gtk-missing-image">gtk-missing-image</item>
				<item stock-id="gtk-media-forward">gtk-media-forward</item>
				<item stock-id="gtk-media-next">gtk-media-next</item>
				<item stock-id="gtk-media-pause">gtk-media-pause</item>
				<item stock-id="gtk-media-play">gtk-media-play</item>
				<item stock-id="gtk-media-previous">gtk-media-previous</item>
				<item stock-id="gtk-media-record">gtk-media-record</item>
				<item stock-id="gtk-media-rewind">gtk-media-rewind</item>
				<item stock-id="gtk-media-stop">gtk-media-stop</item>
				<item stock-id="gtk-network">gtk-network</item>
				<item stock-id="gtk-new">gtk-new</item>
				<item stock-id="gtk-no">gtk-no</item>
				<item stock-id="gtk-ok">gtk-ok</item>
				<item stock-id="gtk-open">gtk-open</item>
				<item stock-id="gtk-paste">gtk-paste</item>
				<item stock-id="gtk-preferences">gtk-preferences</item>
				<item stock-id="gtk-print">gtk-print</item>
				<item stock-id="gtk-print-preview">gtk-print-preview</item>
				<item stock-id="gtk-properties">gtk-properties</item>
				<item stock-id="gtk-quit">gtk-quit</item>
				<item stock-id="gtk-redo">gtk-redo</item>
				<item stock-id="gtk-refresh">gtk-refresh</item>
				<item stock-id="gtk-remove">gtk-remove</item>
				<item stock-id="gtk-revert-to-saved">gtk-revert-to-saved</item>
				<item stock-id="gtk-save">gtk-save</item>
				<item stock-id="gtk-save-as">gtk-save-as</item>
				<item stock-id="gtk-select-color">gtk-select-color</item>
				<item stock-id="gtk-select-font">gtk-select-font</item>
				<item stock-id="gtk-sort-ascending">gtk-sort-ascending</item>
				<item stock-id="gtk-sort-descending">gtk-sort-descending</item>
				<item stock-id="gtk-spell-check">gtk-spell-check</item>
				<item stock-id="gtk-stop">gtk-stop</item>
				<item stock-id="gtk-strikethrough">gtk-strikethrough</item>
				<item stock-id="gtk-undelete">gtk-undelete</item>
				<item stock-id="gtk-underline">gtk-underline</item>
				<item stock-id="gtk-undo">gtk-undo</item>
				<item stock-id="gtk-yes">gtk-yes</item>
				<item stock-id="gtk-zoom-100">gtk-zoom-100</item>
				<item stock-id="gtk-zoom-fit">gtk-zoom-fit</item>
				<item stock-id="gtk-zoom-in">gtk-zoom-in</item>
				<item stock-id="gtk-zoom-out">gtk-zoom-out</item>
			</tree>
		</frame>
		<hbox homogeneous="true">
			<button ok></button>
		</hbox>
	</vbox>
</window>
'
export MAIN_DIALOG

case $1 in
	-d | --dump) echo "$MAIN_DIALOG" ;;
	*) $GTKDIALOG --program=MAIN_DIALOG ;;
esac
Please, where are these "stock" icons stored?

Cordialement.

User avatar
bigpup
Posts: 13886
Joined: Sun 11 Oct 2009, 18:15
Location: S.C. USA

#67 Post by bigpup »

delete
Last edited by bigpup on Tue 07 Apr 2020, 17:14, edited 1 time in total.
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected :shock:
YaPI(any iso installer)

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#68 Post by MochiMoppel »

Argolance wrote:Please, where are these "stock" icons stored?
These icons are not stored anywhere in your filesystem. They are compiled into GTK and AFAIK reside in the file /usr/lib/libgtk-x11-2.0.so

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#69 Post by Argolance »

@MochiMoppel
MochiMoppel wrote:These icons are not stored anywhere in your filesystem. They are compiled into GTK and AFAIK reside in the file /usr/lib/libgtk-x11-2.0.so
Clear and clean! Exactly what I was expecting for, and in one line... :)
Thank you!

@bigpup
/usr/share/icons/Puppy Standard/
There are directories of different icon sizes. Inside those are directories with each type of icon.
Thanks all the same! :wink:

Have a nice day, both of you, and take care of yourself (I see that MochiMoppel has put on his mask...).

Cordialement.

Post Reply