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:
Jonas Schwabe 2016-06-26 11:48:58 +02:00
parent 336a55cb23
commit e2d389fbd4
3 changed files with 20 additions and 7 deletions

View file

@ -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
}
}