Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion client/platform/desktop/background.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,12 +221,13 @@ async function createWindow() {
try {
const size = screen.getPrimaryDisplay().workAreaSize;
const partitionSession = session.fromPartition('persist:dive');
const launchedFromViame = Boolean(process.env.DIVE_VIAME_INSTALL_PATH);
// Create the browser window.
win = new BrowserWindow({
width: Math.min(size.width, 1420),
height: Math.min(size.height - 200, 960),
autoHideMenuBar: true,
title: 'VIAME DIVE Desktop',
title: launchedFromViame ? 'VIAME - DIVE Interface' : 'DIVE Desktop',
webPreferences: {
nodeIntegration: false,
contextIsolation: true,
Expand All @@ -238,6 +239,11 @@ async function createWindow() {
},
});

// desktop.html otherwise replaces the native title after every page load.
if (launchedFromViame) {
win.on('page-title-updated', (event) => event.preventDefault());
}

listen((server) => {
let address = server.address();
let port = 0;
Expand Down
4 changes: 4 additions & 0 deletions docs/Dive-Desktop.md
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,10 @@ See [Interactive Annotation troubleshooting](Interactive-Annotation.md#troublesh
![Debugging Desktop](images/General/desktop-debug.png)


When started through the VIAME launch scripts (`DIVE_VIAME_INSTALL_PATH` is set),
the native window title is **VIAME - DIVE Interface**. Standalone launches use
**DIVE Desktop**.

## Desktop navigation

While annotating a sequence, the top menu contains **Library**, **Jobs**,
Expand Down
Loading