Showing 1 changed files with 3 additions and 3 deletions
+3 -3
flightgear/fgfs_function
... ...
@@ -688,11 +688,11 @@ EOH
688 688
 
689 689
     fgfsrc=$HOME/.fgfs/fgfsrc
690 690
     echo ${fgfs_args[@]//$HOME/\$HOME} $(test -r $fgfsrc && sed -r "/^\s*(#|$)/d;s|$HOME|\$HOME|" $fgfsrc | tr '\n' ' ')
691
-# TODO: ne lancer avec primusrun que si c'est nécesaire, d'autres solution existent ?
692
-    primusrun $FGDIR/install/flightgear/bin/fgfs ${fgfs_args[@]}
691
+    export ${DISCRETE_GPU[@]}
692
+    $FGDIR/install/flightgear/bin/fgfs ${fgfs_args[@]}
693
+    unset fgfs_args ${DISCRETE_GPU[@]%=*}
693 694
     
694 695
     if grep -q $HOME/.fgfs/terrafs.d /proc/mounts; then
695 696
         fusermount -u $HOME/.fgfs/terrafs.d
696 697
     fi
697
-    unset fgfs_args
698 698
 }