[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

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



Title: GitLab

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

Commits:

  • 5898a9ab
    by Nicolas Vigier at 2024-01-25T10:21:48+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:

Changes:

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

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits