mirror of
https://codeberg.org/librewolf/source.git
synced 2025-01-03 03:10:07 -05:00
revert new autoconf lookup directory handling when running as flatpak
This commit is contained in:
parent
612a04faf5
commit
4af48fa203
1 changed files with 23 additions and 0 deletions
23
patches/flatpak_autoconf.patch
Normal file
23
patches/flatpak_autoconf.patch
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
diff --git a/extensions/pref/autoconfig/src/nsReadConfig.cpp b/extensions/pref/autoconfig/src/nsReadConfig.cpp
|
||||||
|
index 06f54dd0ab77..54f08ac90104 100644
|
||||||
|
--- a/extensions/pref/autoconfig/src/nsReadConfig.cpp
|
||||||
|
+++ b/extensions/pref/autoconfig/src/nsReadConfig.cpp
|
||||||
|
@@ -247,16 +247,8 @@ nsresult nsReadConfig::openAndEvaluateJSFile(const char* aFileName,
|
||||||
|
nsCOMPtr<nsIInputStream> inStr;
|
||||||
|
if (isBinDir) {
|
||||||
|
nsCOMPtr<nsIFile> jsFile;
|
||||||
|
-#if defined(MOZ_WIDGET_GTK)
|
||||||
|
- if (!mozilla::widget::IsRunningUnderFlatpakOrSnap()) {
|
||||||
|
-#endif // defined(MOZ_WIDGET_GTK)
|
||||||
|
- rv = NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(jsFile));
|
||||||
|
-#if defined(MOZ_WIDGET_GTK)
|
||||||
|
- } else {
|
||||||
|
- rv = NS_GetSpecialDirectory(NS_OS_SYSTEM_CONFIG_DIR,
|
||||||
|
- getter_AddRefs(jsFile));
|
||||||
|
- }
|
||||||
|
-#endif // defined(MOZ_WIDGET_GTK)
|
||||||
|
+ rv = NS_GetSpecialDirectory(NS_GRE_DIR, getter_AddRefs(jsFile));
|
||||||
|
+
|
||||||
|
if (NS_FAILED(rv)) return rv;
|
||||||
|
|
||||||
|
rv = jsFile->AppendNative(nsDependentCString(aFileName));
|
Loading…
Reference in a new issue