bNobo / needabreak

NEED A BREAK! is an application intended to help you take care of your health while you work on a computer.
GNU General Public License v3.0
6 stars 4 forks source link

Run at startup does not work with MSIX package #124

Closed bNobo closed 5 months ago

bNobo commented 5 months ago

Describe the bug It seems that access to windows registry is sandboxed when the application is installed using MSIX Package (UWP app). So it is not anymore possible to create a registry key under HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Run in order to automatically run the app at startup.

To Reproduce Steps to reproduce the behavior:

  1. Check "run at startup"
  2. Reboot
  3. NEED A BREAK! is not started after reboot

Expected behavior NEED A BREAK! should run at startup when the option is checked

Desktop (please complete the following information):

bNobo commented 5 months ago

https://techcommunity.microsoft.com/t5/modern-work-app-consult-blog/supporting-8220-launch-at-startup-8221-in-a-desktop-app/ba-p/316658

bNobo commented 5 months ago

https://learn.microsoft.com/en-us/windows/apps/desktop/modernize/desktop-to-uwp-enhance