Skip to content
Extraits de code Groupes Projets
Vérifiée Valider 189b9cc5 rédigé par Kubat's avatar Kubat
Parcourir les fichiers

Patch the '?data' path when aegisub is launched as an AppImage

parent 88d9e9ce
Branches
Aucune étiquette associée trouvée
1 requête de fusion!8Create an AppImage
Ce commit fait partie de la requête de fusion !8. Les commentaires créés ici seront créés dans le contexte de cette requête de fusion.
...@@ -36,3 +36,9 @@ subprojects/icu ...@@ -36,3 +36,9 @@ subprojects/icu
subprojects/ffmpeg subprojects/ffmpeg
subprojects/ffms2* subprojects/ffms2*
subprojects/boost* subprojects/boost*
# Build and tag files
cscope.files
git_version.h
git_version.xml
tags
...@@ -44,7 +44,17 @@ void Path::FillPlatformSpecificPaths() { ...@@ -44,7 +44,17 @@ void Path::FillPlatformSpecificPaths() {
agi::fs::path home = home_dir(); agi::fs::path home = home_dir();
SetToken("?user", home/".aegisub"); SetToken("?user", home/".aegisub");
SetToken("?local", home/".aegisub"); SetToken("?local", home/".aegisub");
#ifdef __linux__
/* AppImage case */
if (const char *ptr_root = getenv("APPDIR"); ptr_root != nullptr) {
agi::fs::path root = ptr_root;
SetToken("?data", root/P_DATA);
} else {
SetToken("?data", P_DATA); SetToken("?data", P_DATA);
}
#else
SetToken("?data", P_DATA);
#endif
SetToken("?dictionary", "/usr/share/hunspell"); SetToken("?dictionary", "/usr/share/hunspell");
#else #else
agi::fs::path app_support = agi::util::GetApplicationSupportDirectory(); agi::fs::path app_support = agi::util::GetApplicationSupportDirectory();
......
project('Aegisub', ['c', 'cpp'], project('Aegisub', ['c', 'cpp'],
license: 'BSD-3-Clause', license: 'BSD-3-Clause',
meson_version: '>=0.56.0', meson_version: '>=0.56.0',
default_options: ['cpp_std=c++11', 'buildtype=debugoptimized'], default_options: ['cpp_std=c++17', 'buildtype=debugoptimized'],
version: '3.3.3') version: '3.3.3')
cmake = import('cmake') cmake = import('cmake')
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter