Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. CQtDeployer - change script to restart app
Forum Updated to NodeBB v4.3 + New Features

CQtDeployer - change script to restart app

Scheduled Pinned Locked Moved Solved General and Desktop
2 Posts 2 Posters 236 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    Damian7546
    wrote on last edited by
    #1

    Hi,

    My CQTDeployer generated script to run my app like below:

    BASE_DIR=$(dirname "$(readlink -f "$0")")
    export PATH="$BASE_DIR"/bin/:$PATH
    export LD_LIBRARY_PATH="$BASE_DIR"/lib/:"$BASE_DIR":$LD_LIBRARY_PATH
    export QML_IMPORT_PATH="$BASE_DIR"/qml/:$QML_IMPORT_PATH
    export QML2_IMPORT_PATH="$BASE_DIR"/qml/:$QML2_IMPORT_PATH
    export QT_PLUGIN_PATH="$BASE_DIR"/plugins/:$QT_PLUGIN_PATH
    export QTWEBENGINEPROCESS_PATH="$BASE_DIR"/bin//QtWebEngineProcess
    export QTDIR="$BASE_DIR"
    export CQT_PKG_ROOT="$BASE_DIR"
    export CQT_CLOSE_FILE="$BASE_DIR/TestApp.sh"
    export CQT_RUN_FILE="$BASE_DIR/TestApp.sh"
    
    export QT_QPA_PLATFORM_PLUGIN_PATH="$BASE_DIR"/plugins//platforms:$QT_QPA_PLATFORM_PLUGIN_PATH
    
    "$BASE_DIR/bin/TestApp" "$@"
    
    

    How rewrite this script that to next run this script it restart my app -- not open second window ?

    1 Reply Last reply
    0
    • JoeCFDJ Offline
      JoeCFDJ Offline
      JoeCFD
      wrote on last edited by
      #2

      Find pid of any running TestApp and kill it first before each launch

      1 Reply Last reply
      0
      • D Damian7546 has marked this topic as solved on

      • Login

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved