I'm running Kubuntu 17.04 and want to install Kvantum, but apparently there is no package. How do I do that? Maybe a PPA, maybe download a .deb file?
For Debian / Ubuntu / Linux Mint, there are deb binaries available to download but for a quite old version (Kvantum 0.10.5, released back in October, 2017).
To install the latest Kvantum in Debian, Ubuntu or Linux Mint, you can compile it from source. To do this, follow the steps below.
Install the build dependencies
sudo apt install g++ cmake libx11-dev libxext-dev qtbase5-dev libqt5svg5-dev libqt5x11extras5-dev libqt4-dev qttools5-dev-tools libkf5windowsystem-dev git
Download the latest source
mkdir -p ~/repos/tsujan && cd ~/repos/tsujan git clone https://github.com/tsujan/Kvantum.git && cd Kvantum git checkout master
cd Kvantum mkdir build && cd build cmake .. make
sudo make install
Get Qt applications to use kvantum
echo "export QT_STYLE_OVERRIDE=kvantum" >> ~/.profile
After this, logout and log back in. To apply Kvantum system-wide, and not just for your user, you could add
export QT_STYLE_OVERRIDE=kvantum in
/etc/environment instead of
To completely uninstall
If you want to uninstall Kvantum installed from source, start by opening a terminal, navigating to the folder where you've extracted (in the build folder from the Kvantum/Kvantum directory if you've followed our instructions) and built the source - e.g.
cd ~/repos/tsujan/Kvantum/Kvantum/build, and running this command:
sudo make uninstall
You'll also need to remove the
export QT_STYLE_OVERRIDE=kvantum line from your
~/.profile file. To do this, open
~/.profile with a text editor, e.g. kate:
And remove the
QT_STYLE_OVERRIDE=kvantum line from this file, then save it, logout and log back in.
Source: https://www.linuxuprising.com/2018/05/use-custom-themes-for-qt-applications.html with some adaptations of my own.