Browse Source

Wine: Add patch for custom 'Documents' dir path

master
Fincer 7 years ago
parent
commit
c1fc911e2a
2 changed files with 16 additions and 0 deletions
  1. +4
    -0
      Readme.md
  2. +12
    -0
      wine/custompatch_default-documents-dir.patch

+ 4
- 0
Readme.md View File

@ -269,6 +269,10 @@ FORMAT: Arch Linux PKGBUILD script + source archive.
Patches for Wine. Patches for Wine.
- custompatch_default-documents-dir.patch = Use XDG_WINEDOCUMENTS_DIR as a default Documents directory for Wine prefixes by default. You need to specify XDG_WINEDOCUMENTS_DIR in your $HOME/.config/user-dirs.dirs file.
For more information, check [this](https://forum.winehq.org/viewtopic.php?f=8&t=28582) WineHQ forum topic.
- custompatch_glsl_shader.patch = GLSL shaders patch for Wine. - custompatch_glsl_shader.patch = GLSL shaders patch for Wine.
- custompatch_msi-add-dummyactionthreads.patch = Add MSI dummy actions since Wine lacks a proper implementation of MSI custom action server. See details [here](https://bugs.winehq.org/show_bug.cgi?id=18070) - custompatch_msi-add-dummyactionthreads.patch = Add MSI dummy actions since Wine lacks a proper implementation of MSI custom action server. See details [here](https://bugs.winehq.org/show_bug.cgi?id=18070)


+ 12
- 0
wine/custompatch_default-documents-dir.patch View File

@ -0,0 +1,12 @@
--- a/dlls/shell32/shellpath.c
+++ b/dlls/shell32/shellpath.c
@@ -4252,7 +4252,7 @@
UINT aidsMyStuff[] = { IDS_MYPICTURES, IDS_MYVIDEOS, IDS_MYMUSIC }, i;
const WCHAR* MyOSXStuffW[] = { PicturesW, MoviesW, MusicW };
int acsidlMyStuff[] = { CSIDL_MYPICTURES, CSIDL_MYVIDEO, CSIDL_MYMUSIC };
- static const char * const xdg_dirs[] = { "PICTURES", "VIDEOS", "MUSIC", "DOCUMENTS", "DESKTOP" };
+ static const char * const xdg_dirs[] = { "PICTURES", "VIDEOS", "MUSIC", "WINEDOCUMENTS", "DESKTOP" };
static const unsigned int num = sizeof(xdg_dirs) / sizeof(xdg_dirs[0]);
WCHAR wszTempPath[MAX_PATH];
char szPersonalTarget[FILENAME_MAX], *pszPersonal;

Loading…
Cancel
Save