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
b3f967a0
Commit
b3f967a0
authored
Jun 27, 2009
by
Damjan Jovanovic
Committed by
Alexandre Julliard
Jun 29, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemenubuilder: Only generate associations for the "open" verb.
parent
da1352db
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
winemenubuilder.c
programs/winemenubuilder/winemenubuilder.c
+4
-2
No files found.
programs/winemenubuilder/winemenubuilder.c
View file @
b3f967a0
...
...
@@ -1692,6 +1692,7 @@ static void update_association(LPCWSTR extension, LPCSTR mimeType, LPCWSTR progI
static
BOOL
cleanup_associations
(
void
)
{
static
const
WCHAR
openW
[]
=
{
'o'
,
'p'
,
'e'
,
'n'
,
0
};
HKEY
assocKey
;
BOOL
hasChanged
=
FALSE
;
if
((
assocKey
=
open_associations_reg_key
()))
...
...
@@ -1729,7 +1730,7 @@ static BOOL cleanup_associations(void)
done
=
TRUE
;
goto
end
;
}
command
=
assoc_query
(
ASSOCSTR_COMMAND
,
extensionW
,
NULL
);
command
=
assoc_query
(
ASSOCSTR_COMMAND
,
extensionW
,
openW
);
if
(
command
==
NULL
)
{
char
*
desktopFile
=
reg_get_valA
(
assocKey
,
extensionA
,
"DesktopFile"
);
...
...
@@ -1841,6 +1842,7 @@ static BOOL write_freedesktop_association_entry(const char *desktopPath, const c
static
BOOL
generate_associations
(
const
char
*
xdg_data_home
,
const
char
*
packages_dir
,
const
char
*
applications_dir
)
{
static
const
WCHAR
openW
[]
=
{
'o'
,
'p'
,
'e'
,
'n'
,
0
};
struct
list
*
nativeMimeTypes
=
NULL
;
LSTATUS
ret
=
0
;
int
i
;
...
...
@@ -1960,7 +1962,7 @@ static BOOL generate_associations(const char *xdg_data_home, const char *package
}
}
commandW
=
assoc_query
(
ASSOCSTR_COMMAND
,
extensionW
,
NULL
);
commandW
=
assoc_query
(
ASSOCSTR_COMMAND
,
extensionW
,
openW
);
if
(
commandW
==
NULL
)
/* no command => no application is associated */
goto
end
;
...
...
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