Non HiDPI apps like dia in a HiDPI World

I sometimes use dia to plan software or processes (oldie but a goodie)

It looks tiny on my nice XPS15 HiDPI screen, so do this

Install required packages

$ sudo pacman -S dia tingervnc xorg-twn vinagre

Write xinitrc file for vnc to use (~/.vnc/xstartup-dia)

#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
dia &
twm &

Start vnc server

$ vncserver :1 -name dia -xstartup ~/.vnc/xstartup-dia

Open vinagre in gnome, tick the scale option and conntect to localhost:1