Public bug reported:

Hi! I need support for MS Windows .lnk (binary) files thumbnailing. I try to 
modify '/usr/bin/gnome-exe-thumbnailer' program and it looks works for me. 
Please look at patch below. I test it in old 'gnome-exe-thumbnailer.sh' in 
Ubuntu 10.04 LTS and in new 'gnome-exe-thumbnailer' at Xubuntu 12.10.
It is also need to add MIME type for .lnk file. For Gnome3, i add 
'application/x-ms-shortcut' to /usr/share/thumbnailers/exe-dll-msi.thumbnailer. 
For Gnome2, this should work, i will test it later: 
http://ubuntuforums.org/showthread.php?t=998758&page=2 (seek for 'gconftool-2' 
there).
---

$ diff -u /usr/bin/gnome-exe-thumbnailer.orig /usr/bin/gnome-exe-thumbnailer
--- /usr/bin/gnome-exe-thumbnailer.orig 2013-10-15 22:47:21.969804950 +0400
+++ /usr/bin/gnome-exe-thumbnailer      2013-10-15 23:37:46.433940001 +0400
@@ -70,6 +70,14 @@
        TUNE='-modulate 120,100,0'
 
 else
+       # get .exe name from .lnk (we hope .exe contains icon)
+       if [[ ${INPUTFILE##*.} = 'lnk' ]]
+       then
+               INPUTFILE=$(winepath -u `winedump "$INPUTFILE" | grep -a 'Icon 
path' | cut -c 12-`)
+               # write debug info; may be removed
+               echo $INPUTFILE
+       fi
+
        # Extract group_icon resource.
        # If we get the "wrestool: $INPUTFILE could not find `1' in 
`group_icon' resource." error,
        # there is a 99.9% chance that input file is an installer.

** Affects: gnome-exe-thumbnailer (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1240211

Title:
  [wishlist] [solved] .lnk file support

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/gnome-exe-thumbnailer/+bug/1240211/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to