InTiLinuX Forum
July 30, 2010, 08:07:45 pm *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Announcing new OpenGEU website
 
   Home   Help Search Flickr Gallery Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: Wishlist: patch for GNOME's file manager Nautilus to show .ora file thumbnails  (Read 582 times)
ty1Y7w7
Newbie
*
Offline Offline

Posts: 33


View Profile
« on: February 01, 2010, 09:02:30 pm »

Would it be too much hacking to get open raster image file previews working in Nautilus?
Logged
jonnor
Jr. Member
**
Offline Offline

Posts: 118


View Profile Email
« Reply #1 on: February 01, 2010, 09:51:07 pm »

No hacking needed, Nautilus can use pluggable thumbnailers. Like the one you'll find linked from here:
http://create.freedesktop.org/wiki/OpenRaster/Desktop_Integration
Logged
ty1Y7w7
Newbie
*
Offline Offline

Posts: 33


View Profile
« Reply #2 on: March 09, 2010, 04:30:42 pm »

I am reading this:
http://gitorious.org/oratools/oratools/trees/master

If I got it right then installing Krita will create mime type for me, however Krita doesn't open Mypaint's .ora files. WTF?

I did all the commands given here in the exact same order:
http://gitorious.org/oratools/oratools/blobs/master/thumbnailer-gnome/install

Closed Nautilus and ran:
rm -r .thumbnails/fail/
still no thumbnails
« Last Edit: March 09, 2010, 04:32:24 pm by ty1Y7w7 » Logged
ty1Y7w7
Newbie
*
Offline Offline

Posts: 33


View Profile
« Reply #3 on: March 15, 2010, 12:58:02 am »

I got it working - downloaded wrong stuff previously, should have run git clone git://gitorious.org/oratools/oratools.git


... now - how do I do the same for KDE4 and Dolphin?

I see four files in ../thumbnailer-kde:

CMakeLists.txt   oracreator.cpp   oracreator.h  orathumbnail.desktop

What do you do with them? Are you supposed to compile something?
Logged
ty1Y7w7
Newbie
*
Offline Offline

Posts: 33


View Profile
« Reply #4 on: March 20, 2010, 04:11:51 am »

sudo apt-get install kdelibs5-dev cmake
Need to get 55.3MB/67.1MB of archives.
After this operation, 246MB of additional disk space will be used.


*reading cmake tutorial*

cd oratools/thumbnailer-kde/
mkdir build
cd build/
cmake ..
make
sudo make install

sudo apt-get install dolphin krita-kde4
Need to get 18.1MB of archives.
After this operation, 68.9MB of additional disk space will be used.


sudo -i
echo "image/openraster=kde4-krita.desktop" >> /etc/gnome/defaults.list
exit



And I am still not getting any preview images with Dolphin, I even cleared thumbnail cache one more time:

rm -r .thumbnails/fail/
rm -r .thumbnails/


Logged
ty1Y7w7
Newbie
*
Offline Offline

Posts: 33


View Profile
« Reply #5 on: March 20, 2010, 05:15:14 pm »

With the help of houz from #create freenode channel I got .ora previews finally working in Dolping too!

First remove the old compiled stuff:
cd oratools/thumbnailer-kde/
rm -r -f build/


And start over:
mkdir build
cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/usr/
make
sudo make install


Then manually edit orathumbnailer.desktop file:
gksudo gedit /usr/share/kde4/services/orathumbnail.desktop

And make it like this:
[Desktop Entry]
Type=Service
Name=OpenRaster (long-term) Archiving document
X-KDE-ServiceTypes=ThumbCreator
MimeType=image/openraster-archiving;image/openraster;
X-KDE-Library=orathumbnail
CacheThumbnail=true


Open Dolphin:
Settings → Configure Dolphin
General → Previews
[✓] OpenRaster (long-term) Archiving document

Logged
jonnor
Jr. Member
**
Offline Offline

Posts: 118


View Profile Email
« Reply #6 on: March 20, 2010, 05:28:43 pm »

No need to manually edit the .desktop file any more, I've updated it on houzs request. Smiley
Logged
ty1Y7w7
Newbie
*
Offline Offline

Posts: 33


View Profile
« Reply #7 on: March 20, 2010, 05:45:38 pm »

Hey I am busy writing HOWTO
Can I leave this in just in case:

Press Alt-F2 on keyboard:
gksudo gedit /usr/share/kde4/services/orathumbnail.desktop

And make it like this:
[Desktop Entry]
Type=Service
Name=OpenRaster (long-term) Archiving document
X-KDE-ServiceTypes=ThumbCreator
MimeType=image/openraster-archiving;image/openraster;
X-KDE-Library=orathumbnail
CacheThumbnail=true


?

*edit: I left it in, I don't think it will hurt anyone if I ask them to be sure that this is how it will look like*
« Last Edit: March 20, 2010, 08:21:10 pm by ty1Y7w7 » Logged
InTiLinuX Forum
   

 Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!