How to display additional thumbnails with ROX-filer?

Using applications, configuring, problems
Message
Author
User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

How to display additional thumbnails with ROX-filer?

#1 Post by Argolance »

Hello,
All is in the title: does anybody know how to display gimp xcf or video thumbnails using ROX-filer?

Cordialement.[/i]
Attachments
122740_202x215_easyshot.jpg
(6.95 KiB) Downloaded 793 times
Last edited by Argolance on Sat 02 Mar 2013, 17:20, edited 2 times in total.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#2 Post by Semme »

Argolance- according to this page, it would appear you could use the src pkg here. Mind you I'm guessing..

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

#3 Post by Argolance »

Bonjour,
Thank you for answering.
Mind you I'm guessing..
I couldn't understand the meaning of these words, sorry!!! :oops:

I uncompressed both "VideoThumbnail" and "MagickThumbnail" inside /usr/local/apps, installed Rox-lib and pygtk-2.24.0. When running AppRun files of the directories in a terminal, I get this error message:
Le paquet pygtk2 (2.0.0 ou version ultérieure) doit être installé pour utiliser ce programme: (this means that pygtk2 has to be installed!)
http://rox.sourceforge.net/desktop/ROX-Lib
Traceback (most recent call last):
File "/usr/local/apps/VideoThumbnail/AppRun", line 8, in <module>
import findrox; findrox.version(2, 0, 4)
File "/usr/local/apps/VideoThumbnail/findrox.py", line 60, in version
import rox
File "/usr/lib/ROX-Lib2/python/rox/__init__.py", line 70, in <module>
import pygtk; pygtk.require('2.0')
ImportError: No module named pygtk
Script completed hit RETURN to close window.
... although pygtk-2.24.0 is truly installed on my system. But are pygtk-2.x and pygtk2 two different programs? And if yes, where could I find pygtk2? Or is there any file to configure for pygtk-2 to be taken into account and "recognized" by VideoT and MagickT?

Cordialement.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#4 Post by Semme »

Ah :oops: perhaps Musher would be so kind as to lend a helping hand? Ping Musher.. do you read?

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

#5 Post by Argolance »

More details: this is what I get in xerrs.log:
Traceback (most recent call last):
File "/usr/local/apps/MagickThumbnail/AppRun", line 7, in <module>
import findrox; findrox.version(1, 9, 11)
File "/usr/local/apps/MagickThumbnail/findrox.py", line 43, in version
import rox
File "/usr/lib/ROX-Lib2/python/rox/__init__.py", line 72, in <module>
sys.stderr.write(_('The pygtk2 package (2.0.0 or later) must be '
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 38: ordinal not in range(128)Traceback (most recent call last):
File "/usr/local/apps/VideoThumbnail/AppRun", line 8, in <module>
import findrox; findrox.version(2, 0, 4)
File "/usr/local/apps/VideoThumbnail/findrox.py", line 60, in version
import rox
File "/usr/lib/ROX-Lib2/python/rox/__init__.py", line 72, in <module>
sys.stderr.write(_('The pygtk2 package (2.0.0 or later) must be '
UnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 38: ordinal not in range(128)

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#6 Post by Semme »

Argolance- flip through this thread. Something different here too.. rt-clk options.

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

#7 Post by Argolance »

Hello,
Thank you.
Sorry, but looking at the links above, I admit I don't see exactly what could help for solving this problem: simply display additional thumbnails for video and some pictures files using ROX (with Puppy), especially for native files of Gimp, which is one of the major programs of the LINUX world. This has nothing very exceptional and I am amazed this was not already discussed/solved by some Puppy user... I probably didn't search enough? :?

Cordialement.
Last edited by Argolance on Mon 04 Mar 2013, 10:31, edited 1 time in total.

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#8 Post by Semme »

Then I'm guessing there's no "image_x-xcf" script sitting in ~/Choices/MIME-types?

It's nothing more than:

Code: Select all

#! /bin/sh
exec gimp "$1"

Attachments
zeroinstall-injector.jpg
(61.33 KiB) Downloaded 718 times
rox_xcf-thumb.jpg
(21.63 KiB) Downloaded 626 times

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

#9 Post by Argolance »

Hello,
As shown below, "image_x-xcf" is present in ~/Choices/MIME-types. The only difference is that the code inside is:

Code: Select all

#! /bin/sh
exec gimp "$@"
instead of:

Code: Select all

#! /bin/sh
exec gimp "$1"
I well configured ROX for showing image thumbnails. The link "http://www.0installl.net/injector.html" is dead...
The problem seems to be due to pygtk2 which has something wrong:

Code: Select all

configuredUnicodeEncodeError: 'ascii' codec can't encode character u'\xe9' in position 38: ordinal not in range(128)
This happens when clicking on the button "Video thumbnails" or on "AppRun" inside Video/MagickT.

Cordialement.
Attachments
113648_452x127_easyshot.jpg
(9.67 KiB) Downloaded 601 times
110119_260x203_easyshot.jpg
(6.75 KiB) Downloaded 666 times
111756_377x156_easyshot.jpg
(11.46 KiB) Downloaded 644 times

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#10 Post by Semme »

I have no idea which system you're running, but I'll venture to guess there's a zeroinstall-injector pkg for your Pup too.

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

#11 Post by Argolance »

For example, this "simple" code:

Code: Select all

#!/usr/bin/env python

# example helloworld.py

import pygtk
pygtk.require('2.0')
import gtk

class HelloWorld:

    # This is a callback function. The data arguments are ignored
    # in this example. More on callbacks below.
    def hello(self, widget, data=None):
        print "Hello World"

    def delete_event(self, widget, event, data=None):
        # If you return FALSE in the "delete_event" signal handler,
        # GTK will emit the "destroy" signal. Returning TRUE means
        # you don't want the window to be destroyed.
        # This is useful for popping up 'are you sure you want to quit?'
        # type dialogs.
        print "delete event occurred"

        # Change FALSE to TRUE and the main window will not be destroyed
        # with a "delete_event".
        return False

    def destroy(self, widget, data=None):
        print "destroy signal occurred"
        gtk.main_quit()

    def __init__(self):
        # create a new window
        self.window = gtk.Window(gtk.WINDOW_TOPLEVEL)
    
        # When the window is given the "delete_event" signal (this is given
        # by the window manager, usually by the "close" option, or on the
        # titlebar), we ask it to call the delete_event () function
        # as defined above. The data passed to the callback
        # function is NULL and is ignored in the callback function.
        self.window.connect("delete_event", self.delete_event)
    
        # Here we connect the "destroy" event to a signal handler.  
        # This event occurs when we call gtk_widget_destroy() on the window,
        # or if we return FALSE in the "delete_event" callback.
        self.window.connect("destroy", self.destroy)
    
        # Sets the border width of the window.
        self.window.set_border_width(10)
    
        # Creates a new button with the label "Hello World".
        self.button = gtk.Button("Hello World")
    
        # When the button receives the "clicked" signal, it will call the
        # function hello() passing it None as its argument.  The hello()
        # function is defined above.
        self.button.connect("clicked", self.hello, None)
    
        # This will cause the window to be destroyed by calling
        # gtk_widget_destroy(window) when "clicked".  Again, the destroy
        # signal could come from here, or the window manager.
        self.button.connect_object("clicked", gtk.Widget.destroy, self.window)
    
        # This packs the button into the window (a GTK container).
        self.window.add(self.button)
    
        # The final step is to display this newly created widget.
        self.button.show()
    
        # and the window
        self.window.show()

    def main(self):
        # All PyGTK applications must have a gtk.main(). Control ends here
        # and waits for an event to occur (like a key press or mouse event).
        gtk.main()

# If the program is run directly or passed as an argument to the python
# interpreter then create a HelloWorld instance and show it
if __name__ == "__main__":
    hello = HelloWorld()
    hello.main()
doesn't work and gives this error:
Traceback (most recent call last):
File "/mnt/sdb2/my-documents/miscellaneous/pygtk", line 5, in <module>
import pygtk
ImportError: No module named pygtk
Script completed hit RETURN to close window.
... although, as said above, pygtk-2.24.0 is truly installed on my system.
And I think this is the reason (?) why ROX cannot display video/image thumbnails.

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

#12 Post by Argolance »

I was writing my post as you sent yours.
I am running Puppy Precise 5.4.3.
Thanks.

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

#13 Post by Argolance »

I found and installed a "zeroinstall-injector" package (0.32.pet):
http://mirror.yandex.ru/puppyrus/users/ ... epositary/ (System Tools/ directory)

This is what I get in xerrs.log:
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
Traceback (most recent call last):
File "/usr/bin/0launch", line 2, in <module>
from zeroinstall.injector import cli
ImportError: No module named zeroinstall.injector
:oops:

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#14 Post by Semme »

Not sure why, but past experience says /usr/bin/0launch has to be renamed zeroinstall.injector. Try a symlink..

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

#15 Post by Argolance »

I found a newer version of zeroinstall.injector (1.16) simply through PPM. :D
I installed it with all dependencies. 8)
Executing /usr/bin/0launch, I get:
Traceback (most recent call last):
File "/usr/bin/0launch", line 16, in <module>
from zeroinstall.injector import cli
File "/usr/lib/python2.7/dist-packages/zeroinstall/__init__.py", line 18, in <module>
import gobject; gobject.threads_init()
ImportError: No module named gobject
Script completed hit RETURN to close window.
:evil:
Poor newbies... :cry:

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#16 Post by Semme »

You expect folks to look in PPM.. it's never the case.

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

#17 Post by Argolance »

Hello,
You expect folks to look in PPM.. it's never the case.
I admit: absolutely not! It is why I am trying to understand how it works to be able to preconfigure the next release of my iso (ToOpPy Precise 5.4.3)
Something new: when creating xcf file using the latest version of Gimp, I get thumbnails :D
But I did so many things here and there that I don't know what was wrong or good, what solved this issue... It will be difficult to reproduce the procedure! And what about video thumbnails? It is still a deep "mystery"!

Cordialement.
Attachments
153703_171x107_easyshot.jpg
(4.84 KiB) Downloaded 442 times

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#18 Post by Semme »

That's with the item on the other page. Haven't taken the time to proof it yet. All this :x da_n PROOFING! :wink:

User avatar
CatDude
Posts: 1563
Joined: Wed 03 Jan 2007, 17:49
Location: UK

#19 Post by CatDude »

Hello Argolance
Argolance wrote:...Something new: when creating xcf file using the latest version of Gimp, I get thumbnails :D
In my experience this is quite normal behaviour.
Try this:
Open up (in GIMP obviously) a pre-existing .xcf file that is not showing a thumbnail image,
now do nothing more than simply save the file.
You should now have a thumbnail image showing in ROX.

The only problem is, it will only show until you reboot or restart the Xserver.


Anyway's mate, back to all this other nonsense. :lol:

Curiosity got the better of me,
so i fired up Puppy Precise 5.4.3 (using pfix=ram) and had a crack at this myself.

Apart from these two packages:
  • [url=ttp://downloads.sourceforge.net/project/rox/ROX-Lib/2.0.6/rox-lib2-2.0.6.tar.bz2]rox-lib2-2.0.6.tar.bz2[/url]
    (i unpacked this into: /usr/lib)
    MagickThumbnail-0.5.2.tar.bz2
    (i unpacked this into: /usr/local/apps)
I also ended up installing this lot (approx 20MB :shock: ) via the PPM
before i got thumbnails of .xcf files showing in ROX.
Although there were still a few that did not show as thumbnails for some reason. :roll:
  • python-gobject_3.2.2-1~precise_all.deb 183K
    gir1.2-glib-2.0_1.32.0-1_i386.deb 575K
    libgirepository-1.0-1_1.32.0-1_i386.deb 271K
    python-gi_3.2.2-1~precise_i386.deb 821K
    python-gobject-2_2.28.6-10ubuntu1_i386.deb 853K

    python-gtk2_2.24.0-3_i386.deb 2956K
    python-cairo_1.8.8-1ubuntu3_i386.deb 193K

    zeroinstall-injector_1.6-1ubuntu1_all.deb 1245K
    adduser_3.113ubuntu2_all.deb 568K
    debconf_1.5.42ubuntu1_all.deb 609K
    gnupg_1.4.11-3ubuntu2.2_i386.deb 1924K
    gpgv_1.4.11-3ubuntu2.2_i386.deb 434K
    libpam-modules_1.1.3-7ubuntu2_i386.deb 727K
    passwd_4.1.4.2+svn3283-3ubuntu5.1_i386.deb 2009K

    imagemagick_6.6.9.7-5ubuntu3.2_i386.deb 200K
    imagemagick-common_6.6.9.7-5ubuntu3.2_all.deb 271K
    liblqr-1-0_0.4.1-1.1_i386.deb 109K
    libmagickcore4_6.6.9.7-5ubuntu3.2_i386.deb 5486K
    libmagickwand4_6.6.9.7-5ubuntu3.2_i386.deb 1213K
That's a lot of crap just to be able to have thumbnails.

Hope this helps
CatDude
.
[img]http://www.smokey01.com/CatDude/.temp/sigs/acer-futile.gif[/img]

User avatar
Semme
Posts: 8399
Joined: Sun 07 Aug 2011, 20:07
Location: World_Hub

#20 Post by Semme »

Ah.. Good to have another man :wink: step into the arena for a change.

Post Reply