Skip to content

回复:安装、自动运行、v0.1.6 ​

首次公开证据

打开首次公开证据
查看 1 个交叉存档
来源说明

Published on GitHub in February 2024 as part of Martti Malmi's testimony in the COPA v. Wright trial

比特币有可能运行后又退出了,因为出了什么问题。如果确实如此,debug.log 应该会记录一些信息。你使用的是什么操作系统?我在想我们是不是需要管理员权限,却没有意识到这一点。需要管理员权限的程序无法在 Vista 启动时运行。

程序快捷方式有多个设置选项卡,里面有许多细小的设置项。我会试试启动文件夹那版代码,看看能不能复现这个问题。我电脑上的其他系统托盘图标全都放在启动文件夹里,这让用户可以方便地在一个地方管理所有自动运行项。注册表键里的东西往往是偷偷隐藏起来的臃肿软件。

我实现了在每次关闭 wallet.dat 时将其刷写到磁盘的代码,这样我们就能告诉用户,他们只需要备份 wallet.dat。只恢复 wallet.dat 就可以,其余内容会重新下载。发布之前我还得再做一次压力测试。

嗯,代码运行正常,并在启动文件夹中创建了一个快捷方式。不知为什么,它没有在开机时自动启动,但从菜单中点击它时却运行正常。现在我试着手动创建一个快捷方式,这一次自动启动就正常了,不知道为什么。我可以用旧版代码再试一次。

明白了,我看到你在把它改成注册表方式之前提交了启动文件夹代码。我没看出代码有什么明显问题。我想这取决于它默认情况下不能每次都正常运行的具体问题究竟是什么。是 Vista/UAC 的安全问题吗?

启动文件夹里的快捷方式出了什么问题?如果你能把代码发给我,我想再看一遍,看看能不能发现问题。注册表代码中的第一个 strcat 应该是 strcpy,否则它会间歇性失败。如果快捷方式那版也用了同样的代码,也许问题就在这里。

我为最新版比特币制作了一个 Windows 安装程序,其中包含自动启动和最小化到托盘功能。安装程序会创建一个开始菜单快捷方式和一个启动注册表项。我最初是用启动文件夹中的快捷方式实现自动启动的,但发现它在默认情况下并不总能正常运行,最后便改用注册表项。卸载程序会移除这个注册表项,也可以从选项菜单中禁用它,所以我觉得它终究不会对用户造成太大威胁。

英文原文 ​

展开英文原文

It's possible Bitcoin ran and bailed out because something was wrong. debug.log should tell something if that was the case. What OS are you using? I wonder if we need Admin privilege and don't realize it. Stuff that requires Admin can't start on startup on Vista.

Program shortcuts have multiple tabs of settings with lots of little details. I'll try the startup folder code and see if I can reproduce the problem. Every other systray icon on my computer is in the startup folder, and it makes it easy for users to manage all their autoruns in one place. The things in the registry key tend to be devious hidden bloatware.

I implemented the code to flush wallet.dat whenever it's closed so we'll be able to tell users they only need to backup wallet.dat. You can restore just wallet.dat and it'll re-download the rest. I'll have to do another stress test before release.

Well, the code worked and made a shortcut in the startup folder. For some reason it didn't automatically start when booting, but worked fine when you clicked on it in the menu. Now I tried making a shortcut manually, and this time it works on autostart, don't know why. I could try again with the older code.

I got it, I see you checked in the startup folder code before changing it to registry. I don't see any visible problems in the code. I guess it depends what exactly the problem was with it not always working by default. Was there a Vista/UAC security problem?

What was the problem with the shortcut in the startup folder? If you could send me the code, I'd like to take another look and see if I can see what the problem was. The first strcat in the registry code should be strcpy, otherwise it would fail intermittently. If the same code was in the shortcut one, maybe that was the problem.

I made a Windows installer for the latest version of Bitcoin, which includes the autostart and minimize to tray features. The installer makes a start menu shortcut and a startup registry entry. I first implemented the autostart with a shortcut to the startup folder, but I found out that it doesn't always work by default and ended up doing it with a registry entry. The registry entry is removed by the uninstaller and can be also disabled from the options menu, so I don't think it's such a big menace to the user after all.

为历史保存,为中文读者整理。每篇档案均附来源与英文原文。