[Bug 1240211] Re: [wishlist] [solved] .lnk file support
** Changed in: gnome-exe-thumbnailer (Ubuntu) Status: New => Fix Released -- 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
[Bug 1240211] Re: [wishlist] [solved] .lnk file support
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
[Bug 1240211] Re: [wishlist] [solved] .lnk file support
@jpka: Thanks, that's a great idea. I'm implementing this just now, I will post the new version here for testing today. -- 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
[Bug 1240211] Re: [wishlist] [solved] .lnk file support
I added the support for application/x-ms-shortcut (.lnk) files based on the jopka's patch. Whoever is interested in this feature, please test the attached tarball (sudo tar xjvf gnome-exe-thumbnailer_0.9.2.tar.bz2 -C/). There are also some minor fixes and features included that didn't made it to the official release yet. ** Attachment added: gnome-exe-thumbnailer_0.9.2.tar.bz2 https://bugs.launchpad.net/ubuntu/+source/gnome-exe-thumbnailer/+bug/1240211/+attachment/3879220/+files/gnome-exe-thumbnailer_0.9.2.tar.bz2 -- 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
[Bug 1240211] Re: [wishlist] [solved] .lnk file support
** Patch added: thumbs-lnk.patch https://bugs.launchpad.net/ubuntu/+source/gnome-exe-thumbnailer/+bug/1240211/+attachment/3878786/+files/thumbs-lnk.patch -- 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
[Bug 1240211] Re: [wishlist] [solved] .lnk file support
The attachment thumbs-lnk.patch seems to be a patch. If it isn't, please remove the patch flag from the attachment, remove the patch tag, and if you are a member of the ~ubuntu-reviewers, unsubscribe the team. [This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issues please contact him.] ** Tags added: patch -- 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