DEADSOFTWARE

separate run script for shortcut
authorIvan Denisov <d.ivan.krsk@gmail.com>
Wed, 3 Jan 2018 18:56:30 +0000 (01:56 +0700)
committerIvan Denisov <d.ivan.krsk@gmail.com>
Wed, 3 Jan 2018 18:56:30 +0000 (01:56 +0700)
dev/deb/template/usr/bin/bbcb-shortcut [new file with mode: 0755]
dev/deb/template/usr/share/applications/bbcb.desktop

diff --git a/dev/deb/template/usr/bin/bbcb-shortcut b/dev/deb/template/usr/bin/bbcb-shortcut
new file mode 100755 (executable)
index 0000000..730a789
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+
+pd="/usr/lib/blackbox"
+sd="$HOME/blackbox"
+
+# fix Ubuntu-specific problems:
+unset UBUNTU_MENUPROXY
+unset GTK_MODULES
+export LIBOVERLAY_SCROLLBAR=0
+
+mkdir -p $sd
+
+# export LD_DEBUG=all
+env \
+       BB_PRIMARY_DIR="${pd}" BB_SECONDARY_DIR="${sd}" \
+       "${pd}"/blackbox
index 28cfd5b161bb297390b43c2f14e1df7f8f87a6aa..772d2dafdc60474723c2f82556bf5938e5bea102 100644 (file)
@@ -2,7 +2,7 @@
 Encoding=UTF-8
 Name=BlackBox Component Builder for Linux
 Comment=IDE and component framework for programming language Component Pascal
-Exec=/usr/bin/bbcb
+Exec=/usr/bin/bbcb-shortcut
 Path=
 Icon=/usr/share/pixmaps/blackbox.svg
 Categories=Development;