Implement libunity launcher badge counter to be set via electron, fixes #4193

This commit is contained in:
Jonas Schwabe 2016-06-26 01:55:24 +02:00
parent 90ea0a365c
commit b22ce93477
4 changed files with 41 additions and 1 deletions

View file

@ -45,6 +45,13 @@ if (process.platform === 'darwin') {
}
}
if (process.platform === 'linux' && bindings.unityLauncherAvailable()) {
app.unityLauncher = {
setBadgeCount: bindings.unityLauncherSetBadgeCount,
getBadgeCount: bindings.unityLauncherGetBadgeCount
};
}
app.allowNTLMCredentialsForAllDomains = function (allow) {
if (!process.noDeprecations) {
deprecate.warn('app.allowNTLMCredentialsForAllDomains', 'session.allowNTLMCredentialsForDomains')