unset Xft.dpi how?

Thomas Lübking thomas.luebking at gmail.com
Sun Oct 11 11:32:21 PDT 2015


On Sonntag, 11. Oktober 2015 11:40:50 CEST, Felix Miata wrote:
> Thomas Lübking composed on 2015-10-11 09:38 (UTC+0200):

> This would/should substitute 123 DPI for 96 DPI, correct?

Yes (though you likely already figured)

>> Remove (you need to reload the entire database)
>> xrdb -query | grep -v Xft.dpi | xrdb -load
>
>> This reads out the current database, strips every line 
>> containing "Xft.dpi" and loads the result as new database.
>
> This looks like should be what I'm after, but putting it above '.
> /etc/X11/Xsession' in Mint 17.2's /etc/X11/xinit/xinitrc
> effect on cinnamon-session. Using the following ~/.xinitrc d

Did you check whether those files are invoked at all by cinnamon?
xinitrc is related to xinit which is used by startx, but desktops tend to operate on their own stuff (eg. startkde doesn't read ~/.xinitrc at all, you would have to explicitly add it to its autostart stuff.

I know nothing about cinnamon nor Mint, sorry, but if cinnamon-session is (typically) a script, you might find its inclusions there (otherwise best ask cinnamon developers)
You could also start a bare X server, xterm and "strace cinnamon-session 2>&1 | grep open" to see what files it opens (iff cinnamon-session is an ELF binary!)


> 	xrdb -query | grep -v Xft.dpi | xrdb -load &
> 	export LANG="en_US.UTF-8"
> 	export LC_ALL="en_US.UTF-8"
> 	export LANGUAGE="en_US.UTF-8"
> 	export LC_CTYPE="en_US.UTF-8"
> 	exec cinnamon-session

I bet that cinnamon-session ultimately re-sets the xrdb (as does KDE on starting up)


Cheers,
Thomas


More information about the xorg mailing list