Skip to content

Commit

Permalink
Make flexbe.desktop get installed and made executeable by the shortcu…
Browse files Browse the repository at this point in the history
…t installer
  • Loading branch information
LoyVanBeek committed Jun 29, 2021
1 parent b6d0d97 commit 4fda179
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ install(PROGRAMS
bin/nwjs_install
bin/run_app
bin/shortcut
flexbe.desktop
bin/test_report
DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
install(FILES
Expand Down
2 changes: 2 additions & 0 deletions bin/shortcut
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ if [ "$1" == "create" ] ; then
cd $(rospack find flexbe_app)
if [[ -z $2 ]] ; then
cp flexbe.desktop ~/.local/share/applications
chmod +x ~/.local/share/applications/flexbe.desktop
else
content=$(cat flexbe.desktop)
echo "${content/rosrun/$2; rosrun}" > ~/.local/share/applications/flexbe.desktop
chmod +x ~/.local/share/applications/flexbe.desktop
fi
if [[ ! -d ~/.local/share/icons ]] ; then
mkdir -p ~/.local/share/icons
Expand Down
Empty file modified flexbe.desktop
100755 → 100644
Empty file.

0 comments on commit 4fda179

Please sign in to comment.