Skip to content
Open
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
2 changes: 2 additions & 0 deletions blacs/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,6 @@
import os
from .__version__ import __version__

DESKTOP_APP_MODULE = 'blacs'
APPLICATION_NAME = 'BLACS'
BLACS_DIR = os.path.dirname(os.path.realpath(__file__))
11 changes: 7 additions & 4 deletions blacs/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,18 @@
import labscript_utils.excepthook

import os
from blacs import APPLICATION_NAME, BLACS_DIR, DESKTOP_APP_MODULE

# Associate app windows with OS menu shortcuts:
import desktop_app
desktop_app.set_process_appid('blacs')
desktop_app.set_process_appid(DESKTOP_APP_MODULE)


# Splash screen
from labscript_utils.splash import Splash
splash = Splash(os.path.join(os.path.dirname(__file__), 'blacs.svg'))
splash = Splash(
os.path.join(BLACS_DIR, 'blacs.svg'), application_name=APPLICATION_NAME
)
splash.show()

splash.update_text('importing standard library modules')
Expand Down Expand Up @@ -72,11 +75,11 @@


process_tree = ProcessTree.instance()
process_tree.zlock_client.set_process_name('BLACS')
process_tree.zlock_client.set_process_name(APPLICATION_NAME)


# Setup logging
logger = setup_logging('BLACS')
logger = setup_logging(APPLICATION_NAME)
labscript_utils.excepthook.set_logger(logger)

logger.info(f'Python version {sys.version}')
Expand Down
2 changes: 1 addition & 1 deletion blacs/desktop-app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"product_name": "Labscript Suite",
"modules": {"blacs": {"display_name": "BLACS - the labscript suite"}}
"modules": {"blacs": {"display_name": "BLACS - the labscript suite", "short_display_name": "BLACS"}}
}