Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
0666c0da
Commit
0666c0da
authored
May 18, 2010
by
Damjan Jovanovic
Committed by
Alexandre Julliard
May 19, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: associate .lnk files with wine.
parent
231396de
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+10
-0
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
0666c0da
...
...
@@ -1994,6 +1994,14 @@ static BOOL is_extension_blacklisted(LPCWSTR extension)
return
FALSE
;
}
static
const
char
*
get_special_mime_type
(
LPCWSTR
extension
)
{
static
const
WCHAR
lnkW
[]
=
{
'.'
,
'l'
,
'n'
,
'k'
,
0
};
if
(
!
strcmpiW
(
extension
,
lnkW
))
return
"application/x-ms-shortcut"
;
return
NULL
;
}
static
BOOL
write_freedesktop_association_entry
(
const
char
*
desktopPath
,
const
char
*
dot_extension
,
const
char
*
friendlyAppName
,
const
char
*
mimeType
,
const
char
*
progId
)
...
...
@@ -2102,6 +2110,8 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
{
if
(
contentTypeW
!=
NULL
&&
strchrW
(
contentTypeW
,
'/'
))
mimeTypeA
=
wchars_to_utf8_chars
(
contentTypeW
);
else
if
((
get_special_mime_type
(
extensionW
)))
mimeTypeA
=
strdupA
(
get_special_mime_type
(
extensionW
));
else
mimeTypeA
=
heap_printf
(
"application/x-wine-extension-%s"
,
&
extensionA
[
1
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment