[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.7.0esr-13.0-1] fixup! Bug 41668: Tweaks to the Base Browser updater for Tor Browser

boklm (@boklm) git at gitlab.torproject.org
Thu Jan 25 09:27:04 UTC 2024



boklm pushed to branch tor-browser-115.7.0esr-13.0-1 at The Tor Project / Applications / Tor Browser


Commits:
6292bbc9 by Nicolas Vigier at 2024-01-25T10:26:11+01:00
fixup! Bug 41668: Tweaks to the Base Browser updater for Tor Browser

Bug 42293: Don't disable updater when run by torbrowser-launcher flatpak

When the TORBROWSER_LAUNCHER environment variable is set (which
is set by torbrowser-launcher since version 0.3.7) we assume that Tor
Browser is not installed by a Flatkpak. Although torbrowser-launcher
itself can be installed by a Flatpak, this should not prevent the
updater from working.

- - - - -


1 changed file:

- widget/gtk/WidgetUtilsGtk.cpp


Changes:

=====================================
widget/gtk/WidgetUtilsGtk.cpp
=====================================
@@ -138,6 +138,11 @@ void SetLastMousePressEvent(GdkEvent* aEvent) {
 bool IsRunningUnderSnap() { return !!GetSnapInstanceName(); }
 
 bool IsRunningUnderFlatpak() {
+  // tor-browser#42293: Don't disable updater when run by torbrowser-launcher flatpak
+  const char* torbrowserLauncher = g_getenv("TORBROWSER_LAUNCHER");
+  if (torbrowserLauncher) {
+    return false;
+  }
   // https://gitlab.gnome.org/GNOME/gtk/-/blob/4300a5c609306ce77cbc8a3580c19201dccd8d13/gdk/gdk.c#L472
   static bool sRunning = [] {
     return g_file_test("/.flatpak-info", G_FILE_TEST_EXISTS);



View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/6292bbc911e1ece4413d6386f6f6350ef8281abf

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/tor-browser/-/commit/6292bbc911e1ece4413d6386f6f6350ef8281abf
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tor-commits/attachments/20240125/412a7a86/attachment-0001.htm>


More information about the tor-commits mailing list