OrangeDrangon / android-messages-desktop

Android Messages as a Cross-platform Desktop App
Other
312 stars 27 forks source link

Enhancement: Auto-Startup on Windows Login #384

Open WoofGrrrr opened 2 years ago

WoofGrrrr commented 2 years ago

Enhancement request: Add option to automatically start the app when logging in (Windows 10.) Also an option to minimize to tray when auto-starting.

I have tried adding a LNK to "C:\Program Files\AndroidMessages\AndroidMessages.exe" in "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup" and even in "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Maintenance\Startup" but it doesn't seem to work.

I have manually added an entry into my Registry in "HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run". I will see if that works.

WoofGrrrr commented 2 years ago

Adding to the registry didn't work. Why? I'm confused.

briantho commented 1 year ago

I would like this functionality as well.

OrangeDrangon commented 1 year ago

https://support.microsoft.com/en-us/windows/add-an-app-to-run-automatically-at-startup-in-windows-10-150da165-dcd9-7230-517b-cf3c295d89dd

tested on my windows machine and it seems to be working. copy the desktop icon into the folder accessed with Windows+R then typing shell:startup

WoofGrrrr commented 1 year ago

The article says to press the Windows Key + R, then enter shell:startup.

That brings up Windows Explorer in this folder: "%USERPROFILE%\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Maintenance\Startup"

I already have a link file "Android Messages" here. The link goes to: "C:\Program Files\AndroidMessages\Android Messages\Android Messages.exe".

When I double-click this link file, it does open the app. Yet the app does NOT open automatically when I login.

I ran the Autoruns utility from www.sysinternals.com and it lists my three different attempts to get an auto-start. They're all enabled. I will attach a screen shot.

I just don't understand. I will google problems with auto-start to see if there is a solution.

Autoruns_Android_Messages_2022-09-15 10-28-38 AM

WoofGrrrr commented 1 year ago

I found a number of reports of similar problems with auto-runs in the Startup folder. Some things work. Some don't. No one seems to know why.

I worked around this problem by adding a batch file to the folder and running Android Messages in there.

This opens up a command window briefly and in it I see a number of messages fly by. Did I see errors?

Checking for update [15476:0915/112403.869:ERROR:cache_util_win.cc(20)] Unable to move the cache: Access is denied. (0x5) [15476:0915/112403.870:ERROR:cache_util.cc(144)] Unable to move cache folder C:\Users\markb\AppData\Roaming\android-messages-desktop\GPUCache to C:\Users\markb\AppData\Roaming\android-messages-desktop\old_GPUCache_000 [15476:0915/112403.871:ERROR:disk_cache.cc(185)] Unable to create cache [15476:0915/112403.871:ERROR:shader_disk_cache.cc(612)] Shader Cache Creation failed: -2

OrangeDrangon commented 1 year ago

I will make sure those are expected and that our paths match when I get home.