Thank you! It work perfectly.

P.S. #1. While it intended for Gnome3, i also test it in old Ubuntu 10.04 LTS. 
Some tricks are needed for such Gnome2-based OS, maybe it can be helpful for 
someone:

[code]# Emulate 'gsettings' program which is not exist for Gnome2
sudo touch /usr/bin/gsettings
sudo chmod a+rwx /usr/bin/gsettings
sudo echo "echo Humanity" > /usr/bin/gsettings
# Make new folder and config file
mkdir $HOME/.cache/thumbnails
gsettings > $HOME/.cache/thumbnails/gnome-exe-thumbnailer.cfg
# Link new thumbnailer
gconftool-2 --type=bool --set 
"/desktop/gnome/thumbnailers/application@x-ms-dos-executable/enable" true
gconftool-2 --type=bool --set 
"/desktop/gnome/thumbnailers/application@x-ms-shortcut/enable" true
gconftool-2 --type=string --set 
"/desktop/gnome/thumbnailers/application@x-ms-dos-executable/command" 
"/usr/bin/gnome-exe-thumbnailer %i %o"
gconftool-2 --type=string --set 
"/desktop/gnome/thumbnailers/application@x-ms-shortcut/command" 
"/usr/bin/gnome-exe-thumbnailer %i %o"

# Link original thumbnailer if you need it suddenly:
gconftool-2 --type=string --set 
"/desktop/gnome/thumbnailers/application@x-ms-dos-executable/command" 
"/usr/bin/gnome-exe-thumbnailer.sh %i %o"
gconftool-2 --type=string --set 
"/desktop/gnome/thumbnailers/application@x-ms-shortcut/command" 
"/usr/bin/gnome-exe-thumbnailer.sh %i %o"[/code]


P.S. #2. It is useful sometimes to create .lnk file from msdos/windows 
executable. I use it for tests. There is proprietary program 'xxmklink' exist 
for it, it is free for non-profit use: http://www.xxcopy.com/xxcopy38.htm
Place xxmklink.exe to system32 (and to syswow64 folder for x64 OS).
To use it with Ubuntu, i create small glue logic:
[code]sudo touch /usr/bin/mklnk
sudo chmod a+rwx /usr/bin/mklnk
sudo echo 'wname=`winepath -w "$1"` ; wpath=${wname%'$'\047''\'$'\047''*} ; 
wdescr=`zenity --entry --text="Enter text description (No empty allowed):" 
--entry-text=Description` ; echo *$wname* ; echo *$wpath* ; wine "xxmklink.exe" 
"$wname" "$wname" "%1 %2 %3 %4 %5 %6 %7 %8 %9" "$wpath" "$wdescr" 1 "$wname":1 
| zenity --text-info'  > /usr/bin/mklnk [/code]
and for Gnome2, you just select "Use custom command..." from context menu of 
your .exe file and type 'mklnk'.
For Gnome3, one may use:
[code]1) use this once:
mimeopen -d '/home/full path/to/your app.exe'
        use application #  <-- Select (Other...)
        use command: mklnk
2) next time use context 'Open with...' menu as in Gnome2 (select mklnk) on 
your exe files.[/code]

-- 
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