Question regarding .url files

Questions about Wine on Linux
Locked
F_style
Level 4
Level 4
Posts: 153
Joined: Sat Sep 25, 2010 8:55 pm

Question regarding .url files

Post by F_style »

I use openSUSE 12.3 64 bit. I was browsing some of my Windows files (I use dual boot) while having Firefox running, then inside a folder I accidentally double clicked an .url file. What happened next was, a Wine desktop briefly opened then disappeared, (I have enabled a virtual desktop on winecfg) and a new tab opened on Firefox loading the page the url seemingly pointed.

I've never seen this before. Is this a Wine feature? Not a virus/malware related?

EDIT: seems a thing named "rundll32" was the one Wine executed to run the .url....
And the file's code opening it with gedit is:

Code: Select all

[InternetShortcut]
URL=(the url itself)
IDList=
HotKey=0
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
Thanks...
oiaohm
Level 8
Level 8
Posts: 1020
Joined: Fri Feb 29, 2008 2:54 am

Re: Question regarding .url files

Post by oiaohm »

F_style what you just saw is a odd ball feature of wine.

The answer to what it is happens to be somewhere.

In the directory "~/.local/share/applications" you will find a set of files starting with wine-extension- and ending in .desktop. These are the file associating wine and application installed in wine are assocating themselves with.

wine-extension-url.desktop should contain something like this.

Code: Select all

[Desktop Entry]
Type=Application
Name=rundll32
MimeType=application/x-mswinurl;
Exec=env WINEPREFIX="[b]/one/of/your/wineprefixes[/b]" wine start /ProgIDOpen InternetShortcut %f
NoDisplay=true
StartupNotify=true
Icon=1CD8_rundll32.0
https://gist.github.com/endolith/77635 script is possible to be used to replace the Exec using wine.
Locked