DarkRadiant - Flatpak Installation Guide

From The DarkMod Wiki
Revision as of 03:14, 15 September 2022 by Jonri (talk | contribs)
Jump to navigationJump to search

NOTE: This is a WIP, the Flatpak is not yet online

Obtaining the Flatpak version of DarkRadiant

Flatpak is a universal package format for Linux. Rather than having a different package for every Linux distribution, the Flatpak version will just work on almost any major distribution.

  1. If you've never used a Flatpak before, follow the Flatpak setup instructions for your distro here: https://www.flatpak.org/setup/
  2. Once Flatpak is ready, you can install the DarkRadiant package in a few ways:
    1. You can install the package directly from FlatHub: https://flathub.org/apps/details/net.darkradiant.DarkRadiant
    2. If you are making use of a graphical package installer such as Discover or <Gnome equivalent>, you can simply search for and install DarkRadiant.
    3. Alternatively, from the command line you can run flatpak install --user flathub net.darkradiant.DarkRadiant.

After Installation

One of Flatpak's features is its ability to sandbox applications, providing only the minimum file and device permissions necessary for the application to run. For many applications, you won't ever notice a difference, but for DarkRadiant one additional step is needed to allow DarkRadiant to access the assets from your main game path. This can be done graphically using Flatseal, or by using the command line.

Start by making note of the path to your DarkMod (or other IdTech4 game) installation, then choose one of the two options below.

Add permissions graphically

  1. Install and run Flatseal
  2. In the Applications list, find and select DarkRadiant.
  3. In the Filesystem section, hit the Add button inside "Other files".
  4. Enter the line filesystem=/path/to/tdm, substituting the path to the root of your DarkMod installation.

Add permissions from the command line

Run the following command, substituting the path to the root of your DarkMod installation:
flatpak override --user --filesystem=/path/to/tdm net.darkradiant.DarkRadiant

Running DarkRadiant

  1. The Flatpak version can be launched from your window manager like any other desktop application.
  2. Alternatively, to launch it from the command line you can run flatpak run net.darkradiant.DarkRadiant.

Upon first launch, you will be prompted to select your game path. If you cannot successfully enter your game path, double-check the permissions settings above.