[wishlist] [solved] .lnk file support
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| gnome-exe-thumbnailer (Ubuntu) |
Undecided
|
Unassigned |
Bug Description
Hi! I need support for MS Windows .lnk (binary) files thumbnailing. I try to modify '/usr/bin/
It is also need to add MIME type for .lnk file. For Gnome3, i add 'application/
---
$ diff -u /usr/bin/
--- /usr/bin/
+++ /usr/bin/
@@ -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=
+ # 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.
jpka (jopka) wrote : | #1 |
Jan Nekvasil (jan-nekvasil) wrote : | #3 |
@jpka: Thanks, that's a great idea. I'm implementing this just now, I will post the new version here for testing today.
Jan Nekvasil (jan-nekvasil) wrote : | #4 |
I added the support for application/
jpka (jopka) wrote : | #5 |
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/.
gsettings > $HOME/.
# Link new thumbnailer
gconftool-2 --type=bool --set "/desktop/
gconftool-2 --type=bool --set "/desktop/
gconftool-2 --type=string --set "/desktop/
gconftool-2 --type=string --set "/desktop/
# Link original thumbnailer if you need it suddenly:
gconftool-2 --type=string --set "/desktop/
gconftool-2 --type=string --set "/desktop/
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://
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=$
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]
Changed in gnome-exe-thumbnailer (Ubuntu): | |
status: | New → Fix Released |
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.]