File: file-associations.patch

package info (click to toggle)
wine 10.0~repack-11
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 326,452 kB
  • sloc: ansic: 4,155,993; perl: 23,800; yacc: 22,031; javascript: 15,872; makefile: 12,352; pascal: 9,519; objc: 6,923; lex: 5,273; xml: 3,219; python: 2,688; cpp: 1,741; sh: 895; java: 750; asm: 299; cs: 62
file content (17 lines) | stat: -rw-r--r-- 750 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
description: do not interfere with user file type associations
author: Michael Gilbert <mgilbert@debian.org>
bug: https://bugs.winehq.org/show_bug.cgi?id=28159
bug-debian: https://bugs.debian.org/845334

--- a/programs/winemenubuilder/winemenubuilder.c
+++ b/programs/winemenubuilder/winemenubuilder.c
@@ -1969,6 +1969,9 @@ static BOOL write_freedesktop_mime_type_
 
 static BOOL is_type_banned(const WCHAR *win_type)
 {
+    /* Ban all file type associations since most people don't want wine intefering with their preferences */
+    return TRUE;
+
     /* These are managed through external tools like wine.desktop, to evade malware created file type associations */
     if (!wcsicmp(win_type, L".bat") ||
         !wcsicmp(win_type, L".com") ||