Skip to content

Commit c0e0584

Browse files
committed
Add Linux desktop entry and update Debian installation script
1 parent b9627e7 commit c0e0584

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

.github/workflows/linux.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,10 @@ jobs:
7272
cd ../Resources/Installers/Linux/Open-Ephys_Installer
7373
mkdir -p usr/local/bin/open-ephys-gui
7474
cp -r ../../../../Build/Release/* usr/local/bin/open-ephys-gui
75+
cp ../../../Icons/icon-large.png usr/local/bin/open-ephys-gui
7576
cp ../../../Scripts/*.rules usr/local/bin/open-ephys-gui
77+
mkdir -p usr/share/applications
78+
cp open-ephys.desktop usr/share/applications
7679
cd ..
7780
dpkg-deb --build Open-Ephys_Installer
7881
installer=open-ephys-gui-${gui_ver}${version_suffix}.deb

Resources/Installers/Linux/Open-Ephys_Installer/DEBIAN/postinst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ if [ "$1" = configure ]; then
1111
echo "Creating open-ephys symlink to /usr/local/bin..."
1212
ln -sf open-ephys-gui/open-ephys open-ephys
1313

14+
echo "Ensuring desktop entry permissions..."
15+
chmod 644 /usr/share/applications/open-ephys.desktop
16+
17+
echo "Updating desktop database..."
18+
update-desktop-database -q
19+
1420
echo "Installation finished!"
1521

1622
fi
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[Desktop Entry]
2+
Version=1.0
3+
Type=Application
4+
Name=Open Ephys GUI
5+
Comment=Software for processing, recording, and visualizing multichannel electrophysiology data.
6+
Exec=/usr/local/bin/open-ephys-gui/open-ephys
7+
Icon=/usr/local/bin/open-ephys-gui/icon-large.png
8+
Categories=Science
9+
Terminal=false
10+
StartupNotify=true
11+
Keywords=ephys;electrophysiology;neuroscience;acquisition;visualization;recording;

0 commit comments

Comments
 (0)