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
1 change: 1 addition & 0 deletions runviewer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@

from .__version__ import __version__

APPLICATION_NAME = 'runviewer'
runviewer_dir = os.path.dirname(os.path.realpath(__file__))
12 changes: 7 additions & 5 deletions runviewer/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,18 @@
#####################################################################
import os
import labscript_utils.excepthook
from runviewer import APPLICATION_NAME, runviewer_dir

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


# Splash screen
from runviewer import runviewer_dir
from labscript_utils.splash import Splash
splash = Splash(os.path.join(runviewer_dir, 'runviewer.svg'))
splash = Splash(
os.path.join(runviewer_dir, 'runviewer.svg'), application_name=APPLICATION_NAME
)
splash.show()

splash.update_text('importing standard library modules')
Expand All @@ -38,7 +40,7 @@

splash.update_text('importing labscript suite modules')
from labscript_utils.setup_logging import setup_logging
logger = setup_logging('runviewer')
logger = setup_logging(APPLICATION_NAME)
labscript_utils.excepthook.set_logger(logger)

splash.update_text('importing h5_lock and h5py')
Expand Down Expand Up @@ -68,7 +70,7 @@
from labscript_utils.labconfig import LabConfig, save_appconfig, load_appconfig
from labscript_utils.ls_zprocess import ZMQServer, ProcessTree
process_tree = ProcessTree.instance()
process_tree.zlock_client.set_process_name('runviewer')
process_tree.zlock_client.set_process_name(APPLICATION_NAME)

from labscript_c_extensions.runviewer.resample import resample as _resample

Expand Down
2 changes: 1 addition & 1 deletion runviewer/desktop-app.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"product_name": "Labscript Suite",
"modules": {"runviewer": {"display_name": "runviewer - the labscript suite"}}
"modules": {"runviewer": {"display_name": "runviewer - the labscript suite", "short_display_name": "runviewer"}}
}