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:
parent
336a55cb23
commit
e2d389fbd4
3 changed files with 20 additions and 7 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue