Launcher for Linux
Thanks to Carlos Lira for this post on his blog. This is how to make a launcher for QualCoder on Linux. The Ubuntu executable is available through the Releases pages of QualCoder. If you use a different version of Linux, or want to run for source code instead. Please read the full blog below. I have copied an excerpt only
https://aldats.dev/blog/launch-qualcoder-without-terminal
Creating the QualCoder Script
- Create a file named
qualcoderin your preferred text editor. -
Copy the Bash script below and paste it into the
qualcoderfile.#!/bin/bash\\ QUALCODER_DIRECTORY="/home/aldats/Documents/qualcoder"\\ source $QUALCODER_DIRECTORY/qualcoder/bin/activate\ $QUALCODER_DIRECTORY/qualcoder/bin/qualcoder & -
Replace the value for
QUALCODER_DIRECTORYon line 3 with the full path to your QualCoder installation. - Mark the file
qualcoderas executable. This can be done with the commandchmod +x qualcoder. - Enter the command
./qualcoder. QualCoder should launch.
Moving the QualCoder Script to a PATH Directory
- In a terminal, enter the command
echo $PATH. This prints the value of yourPATHvariable. - Observe output similar to below. Paths are separated by a colon (
:).\/home/aldats/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/bin:/usr/sbin:/bin - Pick one of the paths in your
PATHoutput. I picked/home/aldats/.local/bin. - Move your
qualcoderscript to the directory at the path you picked. - Open a new terminal.
- In the new terminal, enter the command
qualcoder. QualCoder should launch.
Second: Run QualCoder From a Launcher
On Linux, launchers generate a list of launchable programs by looking for special desktop files in directories like /usr/share/applications/ and ~/.local/share/applications/. If you make a desktop file for QualCoder in one of these directories, you can run QualCoder with a launcher.
- Create a file named
qualcoder.desktopin your preferred text editor. - Copy the below text and paste it into
qualcoder.desktop.\[Desktop Entry]\Name=QualCoder\Exec=qualcoder\Type=Application\StartupWMCClass=qualcoder - Move your
qualcoder.desktopfile to a directory your launcher will find desktop files in, like/usr/share/applications/or~/.local/share/applications/. - In your launcher, look up "QualCoder" and launch.