Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14

Thread: Autostart kate - small font

  1. #11
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,849
    Blog Entries
    1

    Default Re: Autostart kate - small font

    Quote Originally Posted by ian_gay View Post
    OK, here's my script

    Code:
    #! /bin/bash  
    if [ "$1" = "post" ]; then   
    su ian -c 'DISPLAY=:0 /usr/bin/kate /home/ian/misc/ian.rem' 
    fi
    It should probably be run as
    Code:
    su - ian -c 'DISPLAY=:0 /usr/bin/kate /home/ian/misc/ian.rem'
    so environment is switched to pertinent user as well.
    openSUSE Leap 15.2; KDE Plasma 5

  2. #12

    Default Re: Autostart kate - small font

    Quote Originally Posted by deano_ferrari View Post
    It should probably be run as
    Code:
    su - ian -c 'DISPLAY=:0 /usr/bin/kate /home/ian/misc/ian.rem'
    so environment is switched to pertinent user as well.
    The additionsl - makes no difference.

    As I mentioned a couple of posts back, changing menu font in systemssettings has no effect on the menu font used in KDE apps. Further experimentation shows that they use for their menus the font which is called 'general' in systemsettings. (Surely a bug, but not pertinent at the moment.)

    So I have tried changing both menu and general fonts in both my user account and in the root account. None of these changes have any effect on the menu font used by kate when launched from script in system-sleep. So where is kate getting its font information in this case???

  3. #13
    Join Date
    Jun 2008
    Location
    Auckland, NZ
    Posts
    22,849
    Blog Entries
    1

    Default Re: Autostart kate - small font

    Quote Originally Posted by ian_gay View Post
    The additionsl - makes no difference.

    As I mentioned a couple of posts back, changing menu font in systemssettings has no effect on the menu font used in KDE apps. Further experimentation shows that they use for their menus the font which is called 'general' in systemsettings. (Surely a bug, but not pertinent at the moment.)
    It's not clear to me why it would behave differently when launched via desktop autostart vs the systemd script (assuming run as user and same environment variables applied).

    So I have tried changing both menu and general fonts in both my user account and in the root account. None of these changes have any effect on the menu font used by kate when launched from script in system-sleep. So where is kate getting its font information in this case???
    You could try using the qt5ct (Qt5 Configuration Tool) perhaps.
    openSUSE Leap 15.2; KDE Plasma 5

  4. #14

    Default Re: Autostart kate - small font

    Quote Originally Posted by deano_ferrari View Post
    It's not clear to me why it would behave differently when launched via desktop autostart vs the systemd script (assuming run as user and same environment variables applied).


    You could try using the qt5ct (Qt5 Configuration Tool) perhaps.
    Thank you! That solves it. I didn't know about qt5ct. The font set in this app is used for menus and toolbar of kate launched from systemd script. The general font from systemsettings is still used when kate is launched normally from the desktop.

    (The scaling is slightly different in the two cases, however...)

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •