mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-30 12:27:29 +09:00
Chase the fox out of the shell service.
"Welcome to branding hell, boys!" Part 2 for #271.
This commit is contained in:
parent
10c9be356b
commit
6d7a58e4d2
3 changed files with 4 additions and 4 deletions
|
|
@ -62,10 +62,10 @@ let ShellServiceInternal = {
|
||||||
|
|
||||||
if (AppConstants.platform == "win") {
|
if (AppConstants.platform == "win") {
|
||||||
let optOutValue = WindowsRegistry.readRegKey(Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER,
|
let optOutValue = WindowsRegistry.readRegKey(Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER,
|
||||||
"Software\\Mozilla\\Firefox",
|
"Software\\Mozilla\\Basilisk",
|
||||||
"DefaultBrowserOptOut");
|
"DefaultBrowserOptOut");
|
||||||
WindowsRegistry.removeRegKey(Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER,
|
WindowsRegistry.removeRegKey(Ci.nsIWindowsRegKey.ROOT_KEY_CURRENT_USER,
|
||||||
"Software\\Mozilla\\Firefox",
|
"Software\\Mozilla\\Basilisk",
|
||||||
"DefaultBrowserOptOut");
|
"DefaultBrowserOptOut");
|
||||||
if (optOutValue == "True") {
|
if (optOutValue == "True") {
|
||||||
Services.prefs.setBoolPref("browser.shell.checkDefaultBrowser", false);
|
Services.prefs.setBoolPref("browser.shell.checkDefaultBrowser", false);
|
||||||
|
|
|
||||||
|
|
@ -451,7 +451,7 @@ nsGNOMEShellService::SetDesktopBackground(nsIDOMElement* aElement,
|
||||||
|
|
||||||
// Set the image to an empty string first to force a refresh
|
// Set the image to an empty string first to force a refresh
|
||||||
// (since we could be writing a new image on top of an existing
|
// (since we could be writing a new image on top of an existing
|
||||||
// Firefox_wallpaper.png and nautilus doesn't monitor the file for changes)
|
// Basilisk_wallpaper.png and nautilus doesn't monitor the file for changes)
|
||||||
gconf->SetString(NS_LITERAL_CSTRING(kDesktopImageKey),
|
gconf->SetString(NS_LITERAL_CSTRING(kDesktopImageKey),
|
||||||
EmptyCString());
|
EmptyCString());
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -135,7 +135,7 @@ OpenKeyForReading(HKEY aKeyRoot, const nsAString& aKeyName, HKEY* aKey)
|
||||||
// The following keys are set to make Basilisk appear in the Start Menu as the
|
// The following keys are set to make Basilisk appear in the Start Menu as the
|
||||||
// browser:
|
// browser:
|
||||||
//
|
//
|
||||||
// HKCU\SOFTWARE\Clients\StartMenuInternet\FIREFOX.EXE\
|
// HKCU\SOFTWARE\Clients\StartMenuInternet\BASILISK.EXE\
|
||||||
// (default) REG_SZ <appname>
|
// (default) REG_SZ <appname>
|
||||||
// DefaultIcon (default) REG_SZ <apppath>,0
|
// DefaultIcon (default) REG_SZ <apppath>,0
|
||||||
// InstallInfo HideIconsCommand REG_SZ <uninstpath> /HideShortcuts
|
// InstallInfo HideIconsCommand REG_SZ <uninstpath> /HideShortcuts
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue