Ticket #21724: 0001-Bug-21724-Make-Firefox-and-Tor-Browser-distinct-macO.patch

File 0001-Bug-21724-Make-Firefox-and-Tor-Browser-distinct-macO.patch, 1.7 KB (added by mcs, 2 years ago)

updated patch

  • browser/app/Makefile.in

    From 7bf2a3cdb8368eda98fa920de55941133602e64e Mon Sep 17 00:00:00 2001
    From: teor <teor2345@gmail.com>
    Date: Mon, 13 Mar 2017 23:06:23 +1100
    Subject: [PATCH] Bug 21724: Make Firefox and Tor Browser distinct macOS apps
    
    When macOS opens a document or selects a default browser, it sometimes
    uses the CFBundleSignature. Changing from the Firefox MOZB signature to
    a different signature TORB allows macOS to distinguish between Firefox
    and Tor Browser.
    ---
     browser/app/Makefile.in                     | 2 +-
     browser/app/macbuild/Contents/Info.plist.in | 2 +-
     2 files changed, 2 insertions(+), 2 deletions(-)
    
    diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in
    index cbd2ec0..1fe7676 100644
    a b tools repackage:: $(DIST)/bin/$(MOZ_APP_NAME) 
    9090        $(MKDIR) -p $(dist_dest)/Contents/Library/LaunchServices
    9191        mv -f $(dist_dest)/Contents/MacOS/updater.app/Contents/MacOS/org.mozilla.updater $(dist_dest)/Contents/Library/LaunchServices
    9292        ln -s ../../../../Library/LaunchServices/org.mozilla.updater $(dist_dest)/Contents/MacOS/updater.app/Contents/MacOS/org.mozilla.updater
    93         printf APPLMOZB > $(dist_dest)/Contents/PkgInfo
     93        printf APPLTORB > $(dist_dest)/Contents/PkgInfo
    9494endif
  • browser/app/macbuild/Contents/Info.plist.in

    diff --git a/browser/app/macbuild/Contents/Info.plist.in b/browser/app/macbuild/Contents/Info.plist.in
    index 6212e88..e8af194 100644
    a b  
    159159        <key>CFBundleShortVersionString</key>
    160160        <string>%APP_VERSION%</string>
    161161        <key>CFBundleSignature</key>
    162         <string>MOZB</string>
     162        <string>TORB</string>
    163163        <key>CFBundleURLTypes</key>
    164164        <array>
    165165                <dict>