sabrogden / Ditto

Ditto is an extension to the Windows Clipboard. You copy something to the Clipboard and Ditto takes what you copied and stores it in a database to retrieve at a later time.
https://ditto-cp.sourceforge.io/
3.76k stars 197 forks source link

Ditto Portable on Win11 runs at startup regardless of the setting #301

Open RaXorX opened 2 years ago

RaXorX commented 2 years ago

As the title suggests, ditto portable keeps running on startup regardless of the setting. Even if I disable it, it runs on its own.

I can't seem to get it to disable at all. Even setting it to run at startup and then disabling it via task manager does nothing to prevent it from running.

sabrogden commented 2 years ago

Check that the Ditto exe path is not listed in the registry folder, Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run

RaXorX commented 2 years ago

Computer\HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Ru

Nope it isn't. It is also not present in the task manager. And the startup option in Ditto settings is also disabled.

redactedscribe commented 2 years ago

Check that the Ditto exe path is not listed in the registry folder,

@sabrogden I'm also having this issue and Ditto isn't listed at that Registry path.

I have always used a Ditto shortcut in my Windows startup folder as a means to run the program at login, but with each boot of the computer, two Ditto processes are shown to be running (also two Dittos in the system tray). I have to end the process which is being mysteriously run, and then click on the remaining Ditto in the system tray to show the Ditto clipboard window before its global shortcut keys begin to function. This issue seems to have begun once I switched from a normal Ditto install to a portable one provided by Scoop a couple months ago.

The only difference between the details about each process that I can see using Process Hacker is that the one which is running for unknown reasons shows the command used to run the process as "<my_Scoop_path>\apps\ditto\3.24.214.0\Ditto.exe" /RestartByRestartManager:Ditto Is Now Running <my_Scoop_path>\apps\ditto\current\Ditto.exe.

I've looked up /RestartByRestartManager before but it didn't help me diagnose the problem. Do you know what is this? Maybe this only happens on restarts, not boots after a shutdown? Unlike the process run by the shortcut, Process Hacker also shows a note that this "Process is in a job", if that helps.

The command executed for Ditto run by the startup folder shortcut simply shows "<my_Scoop_path>\apps\ditto\current\Ditto.exe".

Thanks.

Ditto 3.24.214.0 Windows 11

redactedscribe commented 2 years ago

I think this only an issue when restarting, which would make sense. And I also think that if you manually quit Ditto before a restart, RestartManager (whatever it is) won't launch a second instance.