[X] I have searched the issue tracker for open issues that relate to the same problem, before opening a new one.
[X] This issue only relates to a single bug. I will open new issues for any other problems.
Describe the bug
When packaging a Fyne app I cam across an issue where I had the application name in the FyneApp.toml containing an ampersand:
[Details]
Icon = "logo.png"
Name = "App With & In Name"
ID = "com.example.app-with-ampersand-in-name"
Version = "1.1.0"
Build = 1
This resulted in an error The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail similar to #1521
After reviewing the Windows Event Log there were entries showing Error in manifest or policy file "C:\path\to\app.exe" on line 2. Invalid Xml syntax
After replacing the & with and the issue went away.
I would assume the name is not being properly escaped in the generated manifest as an ampersand must be escaped as & in XML.
How to reproduce
Create FyneApp.toml with Name containing and ampersand character
Package using fyne package -os windows
Attempt to run app
Screenshots
No response
Example code
No code example, issue is with app manifest generation of fyne command line tool.
Checklist
Describe the bug
When packaging a Fyne app I cam across an issue where I had the application name in the
FyneApp.toml
containing an ampersand:This resulted in an error
The application has failed to start because its side-by-side configuration is incorrect. Please see the application event log or use the command-line sxstrace.exe tool for more detail
similar to #1521After reviewing the Windows Event Log there were entries showing
Error in manifest or policy file "C:\path\to\app.exe" on line 2. Invalid Xml syntax
After replacing the
&
withand
the issue went away.I would assume the name is not being properly escaped in the generated manifest as an ampersand must be escaped as
&
in XML.How to reproduce
FyneApp.toml
withName
containing and ampersand characterfyne package -os windows
Screenshots
No response
Example code
No code example, issue is with app manifest generation of
fyne
command line tool.Fyne version
2.2.3
Go compiler version
1.19
Operating system
Windows
Operating system version
Windows 11
Additional Information
No response