Skip to content

Instantly share code, notes, and snippets.

@jcfergus
Last active July 3, 2018 21:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jcfergus/2acc01605589af0fd2157012013bcf42 to your computer and use it in GitHub Desktop.
Save jcfergus/2acc01605589af0fd2157012013bcf42 to your computer and use it in GitHub Desktop.
How to get Corel AfterShot Pro 3 to be usable on HiDPI displays on Linux Mint 18.1 (Cinnamon)

AfterShot Pro 3 on Mint Linux 18.1 (Cinnamon) with HiDPI

The version of QT that ships with Mint Linux 18.1 and Ubuntu Xenial 17.04 (Qt 5.5) is busted when it comes to HiDPI displays. (The version that comes with Ubuntu 17.10 seems to be OK.)

So, we can install an upgraded version of QT, and tell AfterShot to use that, and it seems to work OK.

So, first:

sudo add-apt-repository ppa:beineri/opt-qt-5.10.1-xenial
sudo apt update
sudo apt install qt510-meta-full

this will install QT 5.10 in /opt/qt510/. Once you have installed this, you'll need to get rid of the default QT libraries in /opt/AfterShot3(64-bit)/lib, because the library loader will find them by default. So:

cd /opt/AfterShot3\(64-bit\)/lib
sudo mkdir bak
sudo mv libQt* libdbus* bak

Finally, you'll need to edit the startup script to set the paths appropriately. Edit /usr/bin/AfterShot3X64 (as root), and add the following just after the line that starts INSTALL_PATH=.

source /opt/qt510/bin/qt510-env.sh
QT_SCALE_FACTOR=1.5   # Adjust this as appropriate for your screen.
QT_QPA_PLATFORM_PLUGIN_PATH=/opt/qt510/plugins

Now, if everything has been done correctly (and I wrote this document correctly), when you run AfterShot, it should be scaled to 1.5x.

This also seems to work with Scribus (at least scribus-trunk) - run:

source /opt/qt510/bin/qt510-env.sh
QT_SCALE_FACTOR=2 scribus-trunk &

You may want to reduce the font size through the Display Preferences in Scribus if you scale to 2.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment