File:  [NetBSD Developer Wiki] / wikisrc / tutorials / x11 / how_to_use_gtk_applications_with_lightweight_window_managers___42__box__44___e17__44___etc..mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Wed Mar 31 07:17:06 2021 UTC (7 months, 4 weeks ago) by nia
Branches: MAIN
CVS tags: HEAD
add deets for gtk3

    1: #  The problems
    2: 
    3: After installing lightweight window managers, I noticed that some gtk applications didn't work ( thunar or nautilus, for example ) because of a dbus problem. Moreover, the gtk applications looked ugly, the icons didn't show up. 
    4: 
    5: #  making dbus run
    6: 
    7: You have to add the following line to /etc/rc.conf 
    8:     
    9:     dbus=YES
   10:     
   11: 
   12: Don't forget to put the right dbus file in /etc/rc.d 
   13:     
   14:     cp /usr/pkg/share/examples/rc.d/dbus /etc/rc.d/dbus
   15:     
   16: 
   17: #  choosing your gtk theme
   18: 
   19: For `gtk2+` applications, you need to create a .gtkrc-2.0 file in your home directory with the following lines : 
   20:     
   21:     gtk-theme-name = "Clearlooks"
   22:     gtk-icon-theme-name = "gnome"
   23:     gtk-font-name = "Sans 12"
   24:     
   25: 
   26: For `gtk3+`, the file is `~/.config/gtk-3.0/settings.ini`:
   27: 
   28:     [Settings]
   29:     gtk-theme-name = Material-compact
   30:     gtk-icon-theme-name = adwaita
   31:     gtk-font-name = Sans 12
   32:     gtk-enable-animations = false
   33:     gtk-application-prefer-dark-theme = false
   34:     gtk-menu-popup-delay = 0

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb