windows - 是否可以将Skype 8设置为(临时)使用非标准配置文件数据目录?

标签 windows console electron skype

我想在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)

有人可以帮忙吗?

最佳答案

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

关于windows - 是否可以将Skype 8设置为(临时)使用非标准配置文件数据目录?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61170831/

相关文章:

Linux SIP 客户端只是为了获取来电号码

Electron 滚动条在暗模式下不暗

c++ - 如何在 EXE 文件中找到要 Hook /绕行的函数地址?

python - 在 Windows 上安装 pymssql 时遇到问题

javascript - 如何使无法通过浏览器控制台更改变量

javascript - 如何在 ElectronJS 中设置窗口名称/标题?

node.js - 我无法使用node.js运行 Electron

启动时 ucrtbase.dll 上的 Windows C++ 服务错误

c++ - 奇怪的错误 C2065 : 'ERROR' : undeclared identifier

c# - 属性为空,即使在代码中设置之后也是如此