Skip to content

docs: add API documentation for app.setDesktopName - #51426

Merged
jkleinsc merged 2 commits into
electron:mainfrom
mitchchn:mitch/app-setdesktopname
Jun 8, 2026
Merged

jkleinsc merged 2 commits into
electron:mainfrom
mitchchn:mitch/app-setdesktopname

Conversation

@mitchchn

@mitchchn mitchchn commented May 1, 2026

Copy link
Copy Markdown
Member

Description of Change

app.setDesktopName is not a new API, but it had no API documentation and therefore no generated types, so it was practically undiscoverable. The same is true for the desktopName property in package.json, which was only mentioned in passing in documentation about progress bars for Unity.

I've documented the API and property and made the case for why it's important for developers to set this value explicitly, as no matter how we set the default value, it should not be depended on by apps if they want to provide the best experience on Linux.

Refs #51375.

Checklist

Release Notes

Notes: Added documentation for app.setDesktopName and the desktopName property in package.json for Linux.

@electron-cation electron-cation Bot added documentation 📓 semver/patch backwards-compatible bug fixes new-pr 🌱 PR opened recently labels May 1, 2026
@mitchchn mitchchn mentioned this pull request May 1, 2026
3 tasks done
@mitchchn
mitchchn force-pushed the mitch/app-setdesktopname branch from 2c55a98 to 3ff8a91 Compare May 1, 2026 00:23
@mitchchn
mitchchn force-pushed the mitch/app-setdesktopname branch from 3ff8a91 to 7299317 Compare May 1, 2026 02:05
@dsanders11 dsanders11 added target/39-x-y PR should also be added to the "39-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. target/41-x-y PR should also be added to the "41-x-y" branch. target/42-x-y PR should also be added to the "42-x-y" branch. labels May 1, 2026
@electron-cation electron-cation Bot removed the new-pr 🌱 PR opened recently label May 2, 2026
@github-actions github-actions Bot added the target/43-x-y PR should also be added to the "43-x-y" branch. label May 6, 2026
Comment thread docs/api/app.md Resolved
Comment thread docs/api/app.md Resolved
@nikwen

nikwen commented May 22, 2026

Copy link
Copy Markdown
Member

@mitchchn Would you be able to rebase this PR? Looks like we have conflicts.

@mitchchn
mitchchn force-pushed the mitch/app-setdesktopname branch from 14a3aca to 8448383 Compare May 22, 2026 21:01
@mitchchn
mitchchn requested a review from itsananderson May 22, 2026 21:59
@mitchchn
mitchchn force-pushed the mitch/app-setdesktopname branch from 8448383 to 290e795 Compare May 22, 2026 22:00
@mitchchn
mitchchn force-pushed the mitch/app-setdesktopname branch from 290e795 to cb96b3d Compare May 30, 2026 20:22
@nikwen nikwen removed the target/39-x-y PR should also be added to the "39-x-y" branch. label Jun 2, 2026

@jkleinsc jkleinsc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@samuelmaddock samuelmaddock left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@erickzhao erickzhao left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

API LGTM

@jkleinsc
jkleinsc merged commit 9e3230e into electron:main Jun 8, 2026
181 of 186 checks passed
@release-clerk

release-clerk Bot commented Jun 8, 2026

Copy link
Copy Markdown

Release Notes Persisted

Added documentation for app.setDesktopName and the desktopName property in package.json for Linux.

@trop

trop Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "41-x-y", please check out #51925

@trop trop Bot added the in-flight/41-x-y label Jun 8, 2026
@trop trop Bot removed the target/41-x-y PR should also be added to the "41-x-y" branch. label Jun 8, 2026
@trop

trop Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "43-x-y", please check out #51926

@trop

trop Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "42-x-y", please check out #51927

@trop

trop Bot commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

I have automatically backported this PR to "40-x-y", please check out #51928

@trop trop Bot added in-flight/43-x-y in-flight/42-x-y in-flight/40-x-y merged/41-x-y PR was merged to the "41-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. merged/40-x-y PR was merged to the "40-x-y" branch. and removed target/43-x-y PR should also be added to the "43-x-y" branch. target/42-x-y PR should also be added to the "42-x-y" branch. target/40-x-y PR should also be added to the "40-x-y" branch. in-flight/41-x-y in-flight/43-x-y in-flight/42-x-y in-flight/40-x-y labels Jun 8, 2026
KanishkRanjan pushed a commit to KanishkRanjan/electron that referenced this pull request Jun 11, 2026
* docs: add API documentation for app.setDesktopName

* Update docs/api/app.md

Co-authored-by: Will Anderson <[email protected]>

---------

Co-authored-by: Will Anderson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

44-x-y documentation 📓 merged/40-x-y PR was merged to the "40-x-y" branch. merged/41-x-y PR was merged to the "41-x-y" branch. merged/42-x-y PR was merged to the "42-x-y" branch. merged/43-x-y PR was merged to the "43-x-y" branch. semver/patch backwards-compatible bug fixes

Projects

No open projects
Status: No status

Development

Successfully merging this pull request may close these issues.

7 participants