How to display additional thumbnails with ROX-filer?
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
How to display additional thumbnails with ROX-filer?
Hello,
All is in the title: does anybody know how to display gimp xcf or video thumbnails using ROX-filer?
Cordialement.[/i]
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.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Bonjour,
Thank you for answering.
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:
Cordialement.
Thank you for answering.
I couldn't understand the meaning of these words, sorry!!!Mind you I'm guessing..
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:
... 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?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.
Cordialement.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
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)
Argolance- flip through this thread. Something different here too.. rt-clk options.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
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.
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.
Then I'm guessing there's no "image_x-xcf" script sitting in ~/Choices/MIME-types?
It's nothing more than:
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
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
As shown below, "image_x-xcf" is present in ~/Choices/MIME-types. The only difference is that the code inside is:instead of: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:
This happens when clicking on the button "Video thumbnails" or on "AppRun" inside Video/MagickT.
Cordialement.
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 "$@"
Code: Select all
#! /bin/sh
exec gimp "$1"
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)
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
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
For example, this "simple" code:doesn't work and gives this error:
And I think this is the reason (?) why ROX cannot display video/image thumbnails.
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()
... although, as said above, pygtk-2.24.0 is truly installed on my system.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.
And I think this is the reason (?) why ROX cannot display video/image thumbnails.
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
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:
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
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
I found a newer version of zeroinstall.injector (1.16) simply through PPM.
I installed it with all dependencies.
Executing /usr/bin/0launch, I get:
Poor newbies...
I installed it with all dependencies.
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.
Poor newbies...
- Argolance
- Posts: 3767
- Joined: Sun 06 Jan 2008, 22:57
- Location: PORT-BRILLET (Mayenne - France)
- Contact:
Hello,
Something new: when creating xcf file using the latest version of Gimp, I get thumbnails
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.
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)You expect folks to look in PPM.. it's never the case.
Something new: when creating xcf file using the latest version of Gimp, I get thumbnails
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
Hello Argolance
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.
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:
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.
Hope this helps
CatDude
.
In my experience this is quite normal behaviour.Argolance wrote:...Something new: when creating xcf file using the latest version of Gimp, I get thumbnails
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.
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)
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.
- 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
Hope this helps
CatDude
.