首页 > 解决方案 > 是否可以强制 Skype 8(暂时)使用非标准配置文件数据目录?

问题描述

我想在 PC 上拥有 2 个 Skype 帐户。第二个帐户的配置文件目录位于非系统磁盘上也很重要。我不会同时运行这两个帐户,尽管这样会很好。

Skype 8 帐户配置文件的标准位置是“%userprofile%\AppData\Roaming\Microsoft\Skype for Desktop\”,其中 %userprofile% 通常是“c:\Users\User”。

我想让 Skype 在“f:\My_Profile\AppData\Roaming\Microsoft\Skype for Desktop\”中查找配置文件数据。

备用解决方案是使用磁盘 F 上的便携式 Skype,但我想坚持使用单个 Skype 实例。

我的想法是使用批处理文件来设置 %userprofile% 的适当值并启动 Skype:

@set USERPROFILE=f:\MyProfile
@if not exist %USERPROFILE%\AppData\Roaming @mkdir %USERPROFILE%\AppData\Roaming
@"C:\Program Files (x86)\Microsoft\Skype for Desktop\Skype.exe"

好消息是 Skype 尊重 %USERPROFILE%。至少,它会在所需位置创建一些目录和文件。

坏消息是仍然缺少一些东西,因为 GUI 没有出现,控制台打印:

[Updater] initialized with fallback logger. undefined
[Updater] initialized. undefined
[Updater] start() called. undefined
[Updater] Update interval set to 14400000
[Updater] Starting unexplicit update check as the updater was started. undefined
[Updater] Checking for updates, explicit check: false undefined
[Updater] Platform updater feed URL not set. undefined
[Updater] Setting update feed url to: https://get.skype.com/s4l-update?version=8.58.0.98&os=win&ring=production&app=s4l&t=1586691142022&osversion=6.2.9200 undefined
[Updater] Checking for update. undefined
[WindowsAutoUpdater] checking for update undefined
[HttpsRequest] [2c56ff] Sending request to GET https://get.skype.com/s4l-update?version=8.58.0.98&os=win&ring=production&app=s4l&t=1586691142022&osversion=6.2.9200, Proxy: false, Attempt: 1/3 undefined
[Updater] Calling startPeriodicChecks with interval 14400000 undefined
[WindowsAutoUpdater] A try to install mandatory Updates initiated. undefined
Problem initializing the app Error: Application failed to initialize, updater was started.
    at Object.init (C:\Program Files (x86)\Microsoft\Skype for Desktop\resources\app.asar\ApplicationFactory.js:48:15)
    at Object.<anonymous> (C:\Program Files (x86)\Microsoft\Skype for Desktop\resources\app.asar\Main.js:24:40)
    at Module._compile (internal/modules/cjs/loader.js:880:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:892:10)
    at Module.load (internal/modules/cjs/loader.js:735:32)
    at Module._load (internal/modules/cjs/loader.js:648:12)
    at Module._load (electron/js2c/asar.js:717:26)
    at Function.Module._load (electron/js2c/asar.js:717:26)
    at Object.<anonymous> (electron/js2c/browser_init.js:5817:12)
    at Object../lib/browser/init.ts (electron/js2c/browser_init.js:5824:30)

有人可以帮忙吗?

标签: windowsconsoleelectronskype

解决方案


找到了解决方案。缺少的位是不存在的“%userprofile%\Downloads”目录。创建它,Skype 开始使用新的配置文件。


推荐阅读