From: Ivan Denisov Date: Wed, 3 Jan 2018 18:56:30 +0000 (+0700) Subject: separate run script for shortcut X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=90632558af15f9eb4a6a783ee8c9df3fdef825c9;p=bbcp.git separate run script for shortcut --- diff --git a/dev/deb/template/usr/bin/bbcb-shortcut b/dev/deb/template/usr/bin/bbcb-shortcut new file mode 100755 index 0000000..730a789 --- /dev/null +++ b/dev/deb/template/usr/bin/bbcb-shortcut @@ -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 diff --git a/dev/deb/template/usr/share/applications/bbcb.desktop b/dev/deb/template/usr/share/applications/bbcb.desktop index 28cfd5b..772d2da 100644 --- a/dev/deb/template/usr/share/applications/bbcb.desktop +++ b/dev/deb/template/usr/share/applications/bbcb.desktop @@ -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;