Skip to content

A simple Qt-based app that tracks how long certain processes have been running for.

License

Notifications You must be signed in to change notification settings

kik4444/simple-process-tracker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple Process Tracker

A simple, lightweight Qt-based app that tracks how long user-selected processes have been running on the system.

Build instructions:

Linux:

  1. Install the following dependencies for your distribution: qt6-base qt6-svg cmake
  2. Execute the following:
git clone https://github.com/kik4444/simple-process-tracker
cd simple-process-tracker/src
mkdir build-dir && cd build-dir
cmake -S .. -B . -DCMAKE_BUILD_TYPE:STRING=Release
make -j$(nproc)

Alternative Linux Qt5

git clone https://github.com/kik4444/simple-process-tracker
cd simple-process-tracker/src
mkdir build-dir && cd build-dir
qmake -o Makefile ../simple-process-tracker.pro -spec linux-g++
make -j$(nproc)

Mac OS X

  1. Download the open source version of Qt from https://www.qt.io/download-qt-installer.
  2. Register a Qt account to log into the installer.
  3. Start the installer and accept the request to install the commandline developer tools. Open the subdirectory Qt/Qt 6.2.3. From there choose the component:
  • macOS
  1. Now go to the directory Develop and Designer Tools and select:
  • CMake
  • Ninja
  1. Continue with the installation and finish it.
  2. Execute the following from a terminal:
git clone https://github.com/kik4444/simple-process-tracker
cd simple-process-tracker/src
mkdir build-dir && cd build-dir
export PATH=/Users/$USER/Qt/Tools/Ninja:$PATH
/Users/$USER/Qt/Tools/CMake/CMake.app/Contents/bin/cmake -S .. -B . -GNinja -DCMAKE_BUILD_TYPE:STRING=Release "-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=/Users/$USER/Qt/Qt Creator.app/Contents/Resources/package-manager/auto-setup.cmake" -DQT_QMAKE_EXECUTABLE:STRING=/Users/$USER/Qt/6.2.3/macos/bin/qmake -DCMAKE_PREFIX_PATH:STRING=/Users/$USER/Qt/6.2.3/macos -DCMAKE_C_COMPILER:STRING=/usr/bin/clang -DCMAKE_CXX_COMPILER:STRING=/usr/bin/clang++
/Users/$USER/Qt/Tools/CMake/CMake.app/Contents/bin/cmake --build . --target all -- -j$(sysctl -n hw.ncpu)
/Users/$USER/Qt/6.2.3/macos/bin/macdeployqt simple-process-tracker.app -dmg

You will now have a dmg file containing the application that you can drag and drop into the applications folder in Finder.

Windows

  1. Download the open source version of Qt from https://www.qt.io/download-qt-installer.
  2. Register a Qt account to log into the installer.
  3. Start the installer, when you need to select which components to install, open the subdirectory Qt/Qt 6.2.3. From there choose the components:
  • MinGW 64-bit
  1. Now go to the directory Develop and Designer Tools and select:
  • CMake 64-bit
  • Ninja
  1. Continue with the installation and finish it. You should now have Qt and Qt Creator installed on your computer and the main Qt SDK folder should be located in C:\Qt.
  2. Open powershell and execute the following script which will download and compile the program in a folder on your desktop:
cd C:\Users\$env:UserName\Desktop
Start-BitsTransfer -Source https://github.com/kik4444/simple-process-tracker/archive/refs/heads/master.zip -Destination .
Expand-Archive -Path .\master.zip -DestinationPath .
cd simple-process-tracker-master\src
mkdir build-dir
cd build-dir
$env:Path = "C:\Qt\Tools\mingw900_64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Qt\Tools\Ninja;"
C:\Qt\Tools\CMake_64\bin\cmake.exe -S .. -B . -GNinja "-DCMAKE_BUILD_TYPE:STRING=Release" "-DCMAKE_PROJECT_INCLUDE_BEFORE:PATH=C:/Qt/Tools/QtCreator/share/qtcreator/package-manager/auto-setup.cmake" "-DQT_QMAKE_EXECUTABLE:STRING=C:/Qt/6.2.3/mingw_64/bin/qmake.exe" "-DCMAKE_PREFIX_PATH:STRING=C:/Qt/6.2.3/mingw_64" "-DCMAKE_C_COMPILER:STRING=C:/Qt/Tools/mingw900_64/bin/gcc.exe" "-DCMAKE_CXX_COMPILER:STRING=C:/Qt/Tools/mingw900_64/bin/g++.exe"
C:\Qt\Tools\CMake_64\bin\cmake.exe --build . --target all -- -j $((Get-CimInstance Win32_ComputerSystem).NumberOfLogicalProcessors)
mv .\simple-process-tracker.exe ..
rm -Recurse *
mv ..\simple-process-tracker.exe .
C:\Qt\6.2.3\mingw_64\bin\windeployqt.exe --no-translations .\simple-process-tracker.exe

You will now have a working portable program in the directory C:\Users\YOUR_USER_NAME\Desktop\simple-process-tracker-master\build-dir.

Screenshots for Windows / Mac OS X / Linux

Main window tracking 3 processes

Windows-1 MacOS-1 Linux-1

Adding a new process to track

Windows-2 MacOS-2 Linux-2

Options menu

Windows-3 MacOS-3 Linux-3

About

A simple Qt-based app that tracks how long certain processes have been running for.

Resources

License

Stars

Watchers

Forks

Packages

No packages published