mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
Adding external screen share indicator frame for Mac
This commit is contained in:
parent
5099d0d190
commit
4e639039ac
@ -145,7 +145,7 @@
|
|||||||
},
|
},
|
||||||
"optionalDependencies": {
|
"optionalDependencies": {
|
||||||
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.6",
|
"screen-snippet": "git+https://github.com/symphonyoss/ScreenSnippet2.git#v1.0.6",
|
||||||
"screen-share-indicator-frame": "git+https://github.com/symphonyoss/ScreenShareIndicatorFrame.git#v1.1.0",
|
"screen-share-indicator-frame": "git+https://github.com/symphonyoss/ScreenShareIndicatorFrame.git#v1.2.0",
|
||||||
"swift-search": "2.0.1"
|
"swift-search": "2.0.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -119,10 +119,18 @@ export class WindowHandler {
|
|||||||
this.isAutoReload = false;
|
this.isAutoReload = false;
|
||||||
this.isOnline = true;
|
this.isOnline = true;
|
||||||
|
|
||||||
this.screenShareIndicatorFrameUtil = !isWindowsOS ? '' : isDevEnv
|
this.screenShareIndicatorFrameUtil = '';
|
||||||
? path.join(__dirname,
|
if (isWindowsOS) {
|
||||||
'../../../node_modules/screen-share-indicator-frame/ScreenShareIndicatorFrame.exe')
|
this.screenShareIndicatorFrameUtil = isDevEnv
|
||||||
: path.join(path.dirname(app.getPath('exe')), 'ScreenShareIndicatorFrame.exe');
|
? path.join(__dirname,
|
||||||
|
'../../../node_modules/screen-share-indicator-frame/ScreenShareIndicatorFrame.exe')
|
||||||
|
: path.join(path.dirname(app.getPath('exe')), 'ScreenShareIndicatorFrame.exe');
|
||||||
|
} else if (isMac) {
|
||||||
|
this.screenShareIndicatorFrameUtil = isDevEnv
|
||||||
|
? path.join(__dirname,
|
||||||
|
'../../../node_modules/screen-share-indicator-frame/SymphonyScreenShareIndicator')
|
||||||
|
: path.join(path.dirname(app.getPath('exe')), 'SymphonyScreenShareIndicator');
|
||||||
|
}
|
||||||
|
|
||||||
this.appMenu = null;
|
this.appMenu = null;
|
||||||
const locale: LocaleType = (this.config.locale || app.getLocale()) as LocaleType;
|
const locale: LocaleType = (this.config.locale || app.getLocale()) as LocaleType;
|
||||||
@ -390,7 +398,7 @@ export class WindowHandler {
|
|||||||
if (browserWindow && windowExists(browserWindow)) {
|
if (browserWindow && windowExists(browserWindow)) {
|
||||||
browserWindow.destroy();
|
browserWindow.destroy();
|
||||||
|
|
||||||
if (isWindowsOS) {
|
if (isWindowsOS || isMac) {
|
||||||
this.execCmd(this.screenShareIndicatorFrameUtil, []);
|
this.execCmd(this.screenShareIndicatorFrameUtil, []);
|
||||||
} else {
|
} else {
|
||||||
if (this.screenSharingFrameWindow && windowExists(this.screenSharingFrameWindow)) {
|
if (this.screenSharingFrameWindow && windowExists(this.screenSharingFrameWindow)) {
|
||||||
@ -790,8 +798,8 @@ export class WindowHandler {
|
|||||||
|
|
||||||
displays.forEach((element) => {
|
displays.forEach((element) => {
|
||||||
if (displayId === element.id.toString()) {
|
if (displayId === element.id.toString()) {
|
||||||
if (isWindowsOS) {
|
logger.info(`window-handler: element:`, element);
|
||||||
logger.info(`window-handler: element:`, element);
|
if (isWindowsOS || isMac) {
|
||||||
this.execCmd(this.screenShareIndicatorFrameUtil, [ displayId ]);
|
this.execCmd(this.screenShareIndicatorFrameUtil, [ displayId ]);
|
||||||
} else {
|
} else {
|
||||||
this.createScreenSharingFrameWindow('screen-sharing-frame',
|
this.createScreenSharingFrameWindow('screen-sharing-frame',
|
||||||
|
Loading…
Reference in New Issue
Block a user