如何讓 netflix-desktop 記住視窗設定(或至少不以全螢幕啟動)

如何讓 netflix-desktop 記住視窗設定(或至少不以全螢幕啟動)

這是一件相當小事。我已經安裝了 netflix-desktop 並且運作良好。我只是希望它記住上次會話的視窗設置,或者如果失敗,則不要以全螢幕方式啟動。我知道我可以按 F11 退出全螢幕。就像我說的,我知道這很瑣碎。

netflix-desktop 啟動腳本如下所示:

#!/bin/sh

# Enable translation capabilities
. gettext.sh
export TEXTDOMAIN="netflix-desktop";
export TEXTDOMAINDIR="/usr/share/locale";
# General strings that are translatable
gettext_service_name=`gettext "Netflix Desktop"`;

WINE_BROWSER="/usr/bin/wine-browser";

PACKAGE="netflix-desktop" DEPENDENCIES="wine-silverlight5.1-installer" SERVICE="${gettext_service_name}" URL="http://www.netflix.com/" "${WINE_BROWSER}" $*;

似乎應該有一些參數可以傳遞給 wine-browser,但我不知道它是什麼。

這是相關 .wine-browser/profile-settings 的副本

# Wine Browser profile settings (do not edit)
EXTENSION_INSTALLED=1;
CLIENT_SIDE_GRAPHICS_WORKAROUND=0;
BROWSER_USER_AGENT_WORKAROUND=1;
BROWSER_KATSOMO_WORKAROUND=1;
BROWSER_SECURITY_WORKAROUND=1;

最後,這裡是 prefs.js,它可能是設定所在的位置,儘管對我來說沒有什麼真正明顯的:

# Mozilla User Preferences
user_pref("app.update.enabled", false);
user_pref("app.update.lastUpdateTime.addon-background-update-timer", 1384276497);
user_pref("app.update.lastUpdateTime.background-update-timer", 1384276377);
user_pref("app.update.lastUpdateTime.blocklist-background-update-timer", 1384276617);
user_pref("app.update.lastUpdateTime.browser-cleanup-thumbnails", 1366324221);
user_pref("app.update.lastUpdateTime.search-engine-update-timer", 1351628024);
user_pref("browser.bookmarks.restore_default_bookmarks", false);
user_pref("browser.cache.disk.capacity", 358400);
user_pref("browser.cache.disk.smart_size.first_run", false);
user_pref("browser.cache.disk.smart_size.use_old_max", false);
user_pref("browser.cache.disk.smart_size_cached_value", 358400);
user_pref("browser.download.panel.firstSessionCompleted", true);
user_pref("browser.migration.version", 10);
user_pref("browser.pagethumbnails.storage_version", 3);
user_pref("browser.places.smartBookmarksVersion", 4);
user_pref("browser.rights.3.shown", true);
user_pref("browser.shell.checkDefaultBrowser", false);
user_pref("browser.slowStartup.averageTime", 0);
user_pref("browser.slowStartup.samples", 0);
user_pref("browser.startup.homepage", "http://www.netflix.com/");
user_pref("browser.startup.homepage_override.buildID", "20120713134347");
user_pref("browser.startup.homepage_override.mstone", "14.0.1");
user_pref("browser.tabs.autoHide", true);
user_pref("datareporting.healthreport.nextDataSubmissionTime", "1384336720649");
user_pref("datareporting.healthreport.service.firstRun", true);
user_pref("datareporting.policy.firstRunTime", "1384250320649");
user_pref("datareporting.sessions.current.activeTicks", 10);
user_pref("datareporting.sessions.current.clean", true);
user_pref("datareporting.sessions.current.firstPaint", 1299);
user_pref("datareporting.sessions.current.main", 169);
user_pref("datareporting.sessions.current.sessionRestored", 1342);
user_pref("datareporting.sessions.current.startTime", "1384276822856");
user_pref("datareporting.sessions.current.totalTime", 70);
user_pref("datareporting.sessions.currentIndex", 5);
user_pref("datareporting.sessions.previous.0", "{\"s\":1384250318545,\"a\":11,\"t\":58,\"c\":true,\"m\":219,\"fp\":787,\"sr\":3324}");
user_pref("datareporting.sessions.previous.1", "{\"s\":1384250448283,\"a\":5,\"t\":47,\"c\":true,\"m\":221,\"fp\":1135,\"sr\":1176}");
user_pref("datareporting.sessions.previous.2", "{\"s\":1384276184319,\"a\":11,\"t\":69,\"c\":true,\"m\":331,\"fp\":1541,\"sr\":1588}");
user_pref("datareporting.sessions.previous.3", "{\"s\":1384276256520,\"a\":92,\"t\":461,\"c\":true,\"m\":256,\"fp\":1398,\"sr\":1441}");
user_pref("datareporting.sessions.previous.4", "{\"s\":1384276759544,\"a\":3,\"t\":12,\"c\":true,\"m\":262,\"fp\":1412,\"sr\":1453}");
user_pref("distribution.mozilla13.bookmarksProcessed", true);
user_pref("dom.ipc.plugins.processLaunchTimeoutSecs", 1);
user_pref("dom.ipc.plugins.timeoutSecs", 2);
user_pref("extensions.blocklist.enabled", false);
user_pref("extensions.blocklist.pingCountVersion", -1);
user_pref("extensions.bootstrappedAddons", "{}");
user_pref("extensions.databaseSchema", 14);
user_pref("extensions.enabledAddons", "%7B66e634b8-39da-11e2-bccc-0090f5c75ad5%7D:0.3.0,%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:22.0");
user_pref("extensions.installCache", "[{\"name\":\"app-global\",\"addons\":{\"{972ce4c6-7e08-4474-a285-3208198ce6fd}\":{\"descriptor\":\"C:\\\\Program Files\\\\Mozilla Firefox\\\\browser\\\\extensions\\\\{972ce4c6-7e08-4474-a285-3208198ce6fd}\",\"mtime\":1384250292747,\"rdfTime\":1371557659000}}},{\"name\":\"app-profile\",\"addons\":{\"{66e634b8-39da-11e2-bccc-0090f5c75ad5}\":{\"descriptor\":\"Z:\\\\usr\\\\share\\\\wine-browser-installer\\\\fullscreen-close-plugin\",\"mtime\":1384250116775,\"rdfTime\":1381803141000}}}]");
user_pref("extensions.lastAppVersion", "22.0");
user_pref("extensions.lastPlatformVersion", "22.0");
user_pref("extensions.pendingOperations", false);
user_pref("extensions.shownSelectionUI", true);
user_pref("gecko.buildID", "20130618035212");
user_pref("gecko.mstone", "22.0");
user_pref("general.useragent.override", "Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0");
user_pref("intl.charsetmenu.browser.cache", "UTF-8");
user_pref("network.cookie.prefsMigrated", true);
user_pref("pdfjs.migrationVersion", 1);
user_pref("pdfjs.previousHandler.alwaysAskBeforeHandling", true);
user_pref("places.history.expiration.transient_current_max_pages", 104858);
user_pref("plugin.disable_full_page_plugin_for_types", "application/pdf");
user_pref("plugin.importedState", true);
user_pref("privacy.sanitize.migrateFx3Prefs", true);
user_pref("signon.rememberSignons", false);
user_pref("toolkit.startup.last_success", 1384276823);
user_pref("toolkit.telemetry.previousBuildID", "20130618035212");
user_pref("toolkit.telemetry.prompted", 2);
user_pref("toolkit.telemetry.rejected", true);
user_pref("urlclassifier.keyupdatetime.https://sb-ssl.google.com/safebrowsing/newkey", 1386842323);
user_pref("xpinstall.whitelist.add", "");
user_pref("xpinstall.whitelist.add.180", "");
user_pref("xpinstall.whitelist.add.36", "");

我嘗試過在谷歌上搜尋常識關鍵字,但沒有發現任何有用的東西。任何幫助將不勝感激。

答案1

這不是小事,我已經嘗試這樣做一年多了。我終於找到了以視窗模式而不是全螢幕模式啟動 wine-browser 的命令列選項。它是--windowed。將最後一行/usr/bin/netflix-desktop改為

PACKAGE="netflix-desktop" DEPENDENCIES="wine-silverlight5.1-installer" SERVICE="${gettext_service_name}" URL="http://www.netflix.com/" "${WINE_BROWSER}" --windowed $*;

現在,如果我能弄清楚如何防止遊標消失在玩家身後,它將完美地工作。

相關內容