mirror of
https://github.com/electron/electron.git
synced 2026-05-02 03:00:22 -04:00
Rename the unityLauncher api to launcher and make it available on linux in general. + Document it only works on ubuntu
This commit is contained in:
@@ -45,10 +45,11 @@ if (process.platform === 'darwin') {
|
||||
}
|
||||
}
|
||||
|
||||
if (process.platform === 'linux' && bindings.unityLauncherAvailable()) {
|
||||
app.unityLauncher = {
|
||||
if (process.platform === 'linux') {
|
||||
app.launcher = {
|
||||
setBadgeCount: bindings.unityLauncherSetBadgeCount,
|
||||
getBadgeCount: bindings.unityLauncherGetBadgeCount
|
||||
getBadgeCount: bindings.unityLauncherGetBadgeCount,
|
||||
isCounterBadgeAvailable: bindings.unityLauncherAvailable
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user