diff --git a/Documentation/Cookbook/rst/Installation_Linux.txt b/Documentation/Cookbook/rst/Installation_Linux.txt index af473417cf1f4ad955a31748f513e61f7153795e..8a6e941d15f3de94da5f53739af25686a2e000db 100644 --- a/Documentation/Cookbook/rst/Installation_Linux.txt +++ b/Documentation/Cookbook/rst/Installation_Linux.txt @@ -94,9 +94,9 @@ Q: Monteverdi and Mapla applications look different from my other applications. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ A: By default, Monteverdi, Mapla and otbapplication (otbgui\_\*) uses a the -system gtk theme. If you can't install GTK on your system you can use +system gtk theme. If you can't install GTK on your system you can use the distributed with the OTB package. Note that using system GTK is the preferred -way with the OTB standalone package. Using the distributed version of GTK do not +way with the OTB standalone package as the distributed version of GTK do not work on recent Linux distributions. To use the distributed GTK libraries you need to set the OTB_USE_LOCAL_GTK: diff --git a/SuperBuild/Packaging/Files/linux_pkgsetup.in b/SuperBuild/Packaging/Files/linux_pkgsetup.in index ce6bf235358189278195f551f89166ee416cdf42..98e060f50a62045b1d51137e6dfc681c5ed2ede8 100644 --- a/SuperBuild/Packaging/Files/linux_pkgsetup.in +++ b/SuperBuild/Packaging/Files/linux_pkgsetup.in @@ -73,12 +73,12 @@ cat > "$OUT_DIR/otbenv.profile" << EOF # unset any existing LD_LIBRARY_PATH unset LD_LIBRARY_PATH -# if OTB_USE_LOCAL_GTK is not set or is set to one, +# if OTB_USE_LOCAL_GTK is set to one, # we must include <OUT_DIR>/lib/gtk because glib files are # installed there. -# OTB_USE_LOCAL_GTK is not set by default -if [ -z "\$OTB_USE_LOCAL_GTK" ] || [ "\$OTB_USE_LOCAL_GTK" = "1" ]; then +# OTB_USE_LOCAL_GTK is not set by default (use GTK system) +if [ "\$OTB_USE_LOCAL_GTK" = "1" ]; then LD_LIBRARY_PATH=$OUT_DIR/lib/gtk export LD_LIBRARY_PATH fi