... | ... |
@@ -470,17 +470,25 @@ function fgfs () { |
470 | 470 |
unset hangar |
471 | 471 |
return |
472 | 472 |
;; |
473 |
+ --mumble) |
|
474 |
+ if pgrep -u $USER mumble > /dev/null; then |
|
475 |
+ echo "there is already a mumble instance launched" |
|
476 |
+ else |
|
477 |
+ mumble_desktop_entry=($(if test -n "$XDG_DATA_DIRS"; then find "${(s/:/)XDG_DATA_DIRS}" -type f,l -iname "*mumble*desktop"; fi)) |
|
478 |
+ if test ${#mumble_desktop_entry[@]} -gt 0; then |
|
479 |
+ echo lauching ${mumble_desktop_entry[1]} |
|
480 |
+ nohup gtk-launch ${mumble_desktop_entry[1]##*/} > /dev/null 2>&1 & |
|
481 |
+ else |
|
482 |
+ echo "no desktop entry found for mumble (XDG_DATA_DIRS=$XDG_DATA_DIRS)" |
|
483 |
+ return 1 |
|
484 |
+ fi |
|
485 |
+ fi |
|
486 |
+ ;& # on continue avec l'addon fgcom |
|
473 | 487 |
--fgcom) |
474 |
- if test \ |
|
475 |
- -r $FGADDON/Addons/fgcom-mumble/FGData/Protocol/fgcom-mumble.xml \ |
|
476 |
- -a -r $HOME/.local/share/Mumble/Mumble/Plugins/fgcom-mumble.so \ |
|
477 |
- -a -h $fgfs_install/mumble/lib/libPocoZip.so \ |
|
478 |
- -a -x $fgfs_install/mumble/bin/mumble; then |
|
479 |
- nohup sh -c "LD_LIBRARY_PATH=$fgfs_install/mumble/lib $fgfs_install/mumble/bin/mumble" > /dev/null 2>&1 & |
|
480 |
- fgfs_args+=("--addon=$FGADDON/Addons/fgcom-mumble") |
|
481 |
- fgfs_args+=("--generic=socket,out,10,localhost,16661,udp,fgcom-mumble") |
|
488 |
+ if test -r $fgfs_source/fgcom-mumble/client/fgfs-addon/addon-metadata.xml; then |
|
489 |
+ fgfs_args+=("--addon=$fgfs_source/fgcom-mumble/client/fgfs-addon") |
|
482 | 490 |
else |
483 |
- echo "can't find protocol definition, or fgcom-mumble plugin" |
|
491 |
+ echo "can't find addon fgcom-mumble" |
|
484 | 492 |
return 1 |
485 | 493 |
fi |
486 | 494 |
;; |
... | ... |
@@ -1 +0,0 @@ |
1 |
-mumble |
... | ... |
@@ -1,12 +0,0 @@ |
1 |
-mkdir -p $fgfs_build/poco |
|
2 |
-cd $fgfs_build/poco |
|
3 |
-cmake -DCMAKE_INSTALL_PREFIX=$fgfs_install/mumble -j$simultaneous $fgfs_source/mumble/3rdparty/poco |
|
4 |
-make -j$simultaneous |
|
5 |
-make install |
|
6 |
- |
|
7 |
-cmake_options+=("-DCMAKE_PREFIX_PATH=$fgfs_install/mumble") |
|
8 |
-cmake_options+=("-DCMAKE_INCLUDE_PATH=$fgfs_install/mumble/include") |
|
9 |
-cmake_options+=("-Doverlay-xcompile=OFF") |
|
10 |
-cmake_options+=("-Dserver=OFF") |
|
11 |
-cmake_options+=("-Dretracted-plugins=OFF") |
|
12 |
-cmake_options+=("-Dplugins=OFF") |