
Using a high dots per inch (HiDPI) display monitor can be challenging when using Element or SchildiChat. However this can
be fixed by setting the desired scaling factor. The scaling factor is represented by a percentage in decial form. So a value
of 1.5 represents 150%. Setting this value in either Element or SchildiChat is done by adding the parameter --force-device-scale-factor
when lauching ethier application.
The following instructions show how to copy the system desktop entry file to the user’s home directory and then add the parameter with the desired scaling factor value via the command line (termainl/console).
Assumptions
- Steps prefixed with a “$” (dollar sign) represents the CLI (command-line interface) prompt
- The text after the “$” is to be entered at the CLI
- A directory paths that include a “~” (tilde) expands automatically to the current user home directory (.e.g. /home/adamsdesk)
Element
- Copy the desktop entry file to the user’s home directory.
$ cp /usr/share/applications/io.element.Element.desktop ~/.local/share/applications/
- Edit the copied desktop entry file.
$ nano .local/share/applications/io.element.Element.desktop
[Desktop Entry] Name=Element Comment=Feature-rich client for Matrix Exec=/usr/bin/element-desktop --force-device-scale-factor=1.5 %u Terminal=false Type=Application Icon=io.element.Element StartupWMClass=Element Categories=Network;InstantMessaging;Chat;IRCClient MimeType=x-scheme-handler/element;
- Update database.
$ update-desktop-database ~/.local/share/applications
SchildiChat
- Copy the desktop entry file to the user’s home directory.
$ cp /usr/share/applications/schildichat-desktop.desktop ~/.local/share/applications/
- Edit the copied desktop entry file.
$ nano .local/share/applications/schildichat-desktop.desktop
[Desktop Entry] Name=SchildiChat Exec=/opt/SchildiChat/schildichat-desktop --force-device-scale-factor=1.5 %U Terminal=false Type=Application Icon=schildichat-desktop StartupWMClass=schildichat Comment=A Matrix Client based on Element with a more traditional instant messaging experience MimeType=x-scheme-handler/element; Categories=Network;InstantMessaging;Chat;VideoConference;
- Update database.
$ update-desktop-database ~/.local/share/applications
I’m publishing this as part of 100 Days To Offload. You can join in yourself by visiting 100DaysToOffload.com.
References
- Deskop entries, ArchWiki
- Desktop Entry Specification, Freedesktop
- Element Vector SVG icon, SVG Repo
- Element, application
- HiDPI, ArchWiki
- Matrix Vector SVG icon, SVG Repo
- Matrix.org
- Pixel density, Wikipedia
- SchildiChat Vector SVG icon
- SchildiChat, application
- Texture background, illustration by Tolucreations, published Oct 18, 2016, Pixabay
- Tilde Expansion, BASH Reference Manual
Changelog
-
- change topic
- remove tags hidpi, matrix, support
-
- change topic