Blink1Control2 icon indicating copy to clipboard operation
Blink1Control2 copied to clipboard

"Start at login" feature broken on Windows

Open Dtrieb opened this issue 5 years ago • 16 comments

On the first start of my Win7 PC i get this error:

error

Dtrieb avatar Dec 23 '18 11:12 Dtrieb

Hi, I don't speak German and I cannot select the text in that screenshot to do a translate. Is there someone to get the message of that dialog error as text or in English?

Also, I assume this is for the latest 2.2.1 version. Do you get the same error for 2.2.0?

todbot avatar Dec 23 '18 17:12 todbot

@todbot

It mean:

The following file can't open:

File: app.asar

Its on the Version: 2.2.1 I didn't try 2.2.0.

Dtrieb avatar Dec 23 '18 17:12 Dtrieb

#97 Like the same!?

Dtrieb avatar Dec 23 '18 17:12 Dtrieb

Is the issue you are seeing on startup or when double-clicking to start the application by hand?

todbot avatar Dec 23 '18 18:12 todbot

I see this on startup.

I run: msconfig.exe

msconfig_2018-12-23_19-43-21 msconfig_2018-12-23_19-43-52

Dtrieb avatar Dec 23 '18 18:12 Dtrieb

Does the Blink1Control2 app work when double-clicking to start the app or just on startup?

todbot avatar Dec 23 '18 18:12 todbot

The Blink1Control2 app work when double-clicking to start the app.

Dtrieb avatar Dec 23 '18 18:12 Dtrieb

Ahh, okay thanks. I will do some experiments. It may take a few days. As a workaround, you can turn off the "start at login" option in Blink1Control2 and use Windows directly do set this, like: https://helpdeskgeek.com/windows-7/add-programs-to-windows-7-startup-folder/

todbot avatar Dec 23 '18 18:12 todbot

Happend on Version: 2.2.3 also!

Dtrieb avatar Jul 31 '19 11:07 Dtrieb

Happend on Version: 2.2.3 also!

Happening to me also, v2.2.3

craigusus avatar Oct 12 '19 11:10 craigusus

Hi @Dtrieb and @craigusus, A few questions to help diagnose this:

  • What version of Windows are you running?
  • Is this a non-English version of Windows?
  • From what directory are you running Blink1Control2?
  • What is the value of your the environment %APPDATA%?

I think there's an issue with non-ASCII characters in the filepath, but I've not been able to recreate it locally. Thanks!

todbot avatar Oct 12 '19 17:10 todbot

Hi @todbot

  • Windows 10 Home 1903 build 18362.418
  • English
  • Default install directory when installing using the v2.2.3 installer. (C:\Users\Craig\AppData\Local\Programs\Blink1Control2)
  • %APPDATA% = C:\Users\Craig\AppData\Roaming

When the 'Start at Logon' option is checked it creates a REG entry in HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run called "app." with the value: "C:\Users\Craig\AppData\Local\Programs\Blink1Control2\resources\app.asar"

Where it should be: C:\Users\Craig\AppData\Local\Programs\Blink1Control2\Blink1Control2.exe

craigusus avatar Oct 12 '19 18:10 craigusus

Ah, so this is a "error on Windows startup" not "error on app startup"? That is, you can run Blink1Control2 by double-clicking, but the "start at login" does not work.

todbot avatar Oct 12 '19 22:10 todbot

Yes sorry, I can open the app from double-clicking on it. But when 'Start at login' is selected in 'Preferences' it creates the incorrect registry entry.

craigusus avatar Oct 12 '19 22:10 craigusus

Awesome, thanks. I think I found the bug in the library I'm using to do start-at-login. But I'm not sure how to fix it. Time for more research. :)

todbot avatar Oct 12 '19 23:10 todbot

Hi @todbot & @craigusus

Windows 7 German C:\Users\Daniel Schlapa\AppData\Local\Programs\Blink1Control2\Blink1Control2.exe C:\Users\Daniel Schlapa\AppData\Roaming

Dtrieb avatar Oct 13 '19 09:10 Dtrieb