X Tutup
Skip to content

Commit 655b614

Browse files
erickzhaomalept
andauthored
docs: remove unused Desktop Environment Integration doc (electron#30577)
* docs: remove unused Desktop Environment Integration doc * Update docs/api/app.md Co-authored-by: Mark Lee <malept@users.noreply.github.com> * Update docs/api/app.md Co-authored-by: Mark Lee <malept@users.noreply.github.com> Co-authored-by: Mark Lee <malept@users.noreply.github.com>
1 parent cbeae20 commit 655b614

File tree

3 files changed

+5
-41
lines changed

3 files changed

+5
-41
lines changed

docs/api/app.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1137,8 +1137,8 @@ badge.
11371137

11381138
On macOS, it shows on the dock icon. On Linux, it only works for Unity launcher.
11391139

1140-
**Note:** Unity launcher requires the existence of a `.desktop` file to work,
1141-
for more information please read [Desktop Environment Integration][unity-requirement].
1140+
**Note:** Unity launcher requires a `.desktop` file to work. For more information,
1141+
please read the [Unity integration documentation][unity-requirement].
11421142

11431143
### `app.getBadgeCount()` _Linux_ _macOS_
11441144

@@ -1376,8 +1376,8 @@ An `Integer` property that returns the badge count for current app. Setting the
13761376

13771377
On macOS, setting this with any nonzero integer shows on the dock icon. On Linux, this property only works for Unity launcher.
13781378

1379-
**Note:** Unity launcher requires the existence of a `.desktop` file to work,
1380-
for more information please read [Desktop Environment Integration][unity-requirement].
1379+
**Note:** Unity launcher requires a `.desktop` file to work. For more information,
1380+
please read the [Unity integration documentation][unity-requirement].
13811381

13821382
**Note:** On macOS, you need to ensure that your application has the permission
13831383
to display notifications for this property to take effect.
@@ -1405,7 +1405,7 @@ A `Boolean` property that returns `true` if the app is packaged, `false` otherw
14051405
[LSCopyDefaultHandlerForURLScheme]: https://developer.apple.com/library/mac/documentation/Carbon/Reference/LaunchServicesReference/#//apple_ref/c/func/LSCopyDefaultHandlerForURLScheme
14061406
[handoff]: https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/Handoff/HandoffFundamentals/HandoffFundamentals.html
14071407
[activity-type]: https://developer.apple.com/library/ios/documentation/Foundation/Reference/NSUserActivity_Class/index.html#//apple_ref/occ/instp/NSUserActivity/activityType
1408-
[unity-requirement]: ../tutorial/desktop-environment-integration.md#unity-launcher
1408+
[unity-requirement]: https://help.ubuntu.com/community/UnityLaunchersAndDesktopFiles#Adding_shortcuts_to_a_launcher
14091409
[mas-builds]: ../tutorial/mac-app-store-submission-guide.md
14101410
[Squirrel-Windows]: https://github.com/Squirrel/Squirrel.Windows
14111411
[JumpListBeginListMSDN]: https://msdn.microsoft.com/en-us/library/windows/desktop/dd378398(v=vs.85).aspx

docs/tutorial/desktop-environment-integration.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

spec/ts-smoke/electron/main.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ app.whenReady().then(() => {
172172
app.getLocale()
173173

174174
// Desktop environment integration
175-
// https://github.com/electron/electron/blob/master/docs/tutorial/desktop-environment-integration.md
176175

177176
app.addRecentDocument('/Users/USERNAME/Desktop/work.type')
178177
app.clearRecentDocuments()

0 commit comments

Comments
 (0)
X Tutup