Skip to content

Rename app icon to match the manifest id - #3

Open
MohammedSalem2510 wants to merge 1 commit into
JustAHippo:mainfrom
MohammedSalem2510:fix/app-icon-filename
Open

Rename app icon to match the manifest id#3
MohammedSalem2510 wants to merge 1 commit into
JustAHippo:mainfrom
MohammedSalem2510:fix/app-icon-filename

Conversation

@MohammedSalem2510

Copy link
Copy Markdown

DeskThing resolves an app's icon by id: getIcon in DeskThingServer/src/main/services/apps/appUtils.ts builds the path as join(getAppFilePath(appName), 'icons', icon || ${appName}.svg), and the client builds /icons//icons/.svg.

The repo ships icons/deskthingapp.svg (the template default) while the manifest id is "streamthingy", so the lookup for icons/streamthingy.svg never resolves and getIcon returns null. AppManifest has no icon field, so the filename is the only way to bind an icon to the app.

DeskThing resolves an app's icon by id: getIcon in
DeskThingServer/src/main/services/apps/appUtils.ts builds the path as
join(getAppFilePath(appName), 'icons', icon || `${appName}.svg`), and
the client builds /icons/<appId>/icons/<appId>.svg.

The repo ships icons/deskthingapp.svg (the template default) while the
manifest id is "streamthingy", so the lookup for icons/streamthingy.svg
never resolves and getIcon returns null. AppManifest has no icon field,
so the filename is the only way to bind an icon to the app.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant