Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] App crashes on startup #17

Closed
myfix16 opened this issue Mar 3, 2023 · 2 comments · Fixed by #20
Closed

[Bug] App crashes on startup #17

myfix16 opened this issue Mar 3, 2023 · 2 comments · Fixed by #20
Assignees
Labels
bug Something isn't working

Comments

@myfix16
Copy link
Owner

myfix16 commented Mar 3, 2023

The application fails to launch – the splash screen appears but then the application fails to launch.

@myfix16 myfix16 added the bug Something isn't working label Mar 3, 2023
@myfix16 myfix16 self-assigned this Mar 3, 2023
@myfix16
Copy link
Owner Author

myfix16 commented Mar 4, 2023

Related to this issue.

@myfix16
Copy link
Owner Author

myfix16 commented Mar 4, 2023

Resolved.
According to this blog, we are supposed to write package.appxmanifest in this form:

<Extensions>
	<uap5:Extension
	Category="windows.startupTask"
	Executable="SingleInstancedError.exe"
	EntryPoint="SingleInstancedError.App">
		<uap5:StartupTask
		TaskId="SingleInstancedErrorId"
		Enabled="false"
		DisplayName="SingleInstancedError startup" />
	</uap5:Extension>
</Extensions>

However, to make it work for Windows App SDK, these two lines must be removed:

Executable="SingleInstancedError.exe"
EntryPoint="SingleInstancedError.App"

So that the manifest looks like this:

<Extensions>
	<uap5:Extension
	Category="windows.startupTask">
		<uap5:StartupTask
		TaskId="SingleInstancedErrorId"
		Enabled="false"
		DisplayName="SingleInstancedError startup" />
	</uap5:Extension>
</Extensions>

@myfix16 myfix16 closed this as completed Mar 4, 2023
@myfix16 myfix16 reopened this Mar 4, 2023
@myfix16 myfix16 added this to the v1.3.3 Release milestone Mar 4, 2023
@myfix16 myfix16 linked a pull request Mar 4, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant