如何让 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 $*;

现在,如果我能弄清楚如何防止光标消失在播放器后面,它就可以完美运行。

相关内容