What creates ~/.gtkrc-2.0? I don't want it to exist

Relevant sections of the Arch wiki: XDG Base Directory - ArchWiki (search for .gtkrc-2.0 only returns gtk2, which I have deleted)

Report everything you have already attempted to solve your problem.

Adding export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc to my bash and fish configs, similar lines to /etc/environment and /etc/security/pam_env.conf, uninstalling gtk2 and webkitgtk2, edit /usr/lib/libFcitx5Core.so to replace '.gktrc-2.0' string literal with '.var/shit' (I thought I'd try lol, only result of grepping in /lib), delete /etc/skel/.gtkrc-2.0

Logging in from a tty and startx didn't create the file. I'm wondering if it is sddm, but I see nothing to indicate that would be the case.

inxi -Faz

System:    Kernel: 5.15.5-zen1-1-zen x86_64 bits: 64 compiler: gcc v: 11.1.0
           parameters: BOOT_IMAGE=/@/boot/vmlinuz-linux-zen root=UUID=74b4d5d6-793e-49c5-b882-ea7d9611ad1c rw
           rootflags=subvol=@ quiet splash rd.udev.log_priority=3 vt.global_cursor_default=0
           systemd.unified_cgroup_hierarchy=1 loglevel=3
           Desktop: KDE Plasma 5.23.3 tk: Qt 5.15.2 info: latte-dock wm: kwin_wayland vt: 2 dm: SDDM Distro: Garuda Linux
           base: Arch Linux
Machine:   Type: Convertible System: LENOVO product: 81Q9 v: Yoga C940-14IIL serial: <superuser required> Chassis: type: 31
           v: Yoga C940-14IIL serial: <superuser required>
           Mobo: LENOVO model: LNVNB161216 v: SDK0K17763 WIN serial: <superuser required> UEFI: LENOVO v: AUCN57WW
           date: 08/18/2020
Battery:   ID-1: BAT1 charge: 16.1 Wh (30.4%) condition: 52.9/60.0 Wh (88.1%) volts: 7.5 min: 7.7 model: Celxpert BASE-BAT
           type: Li-poly serial: <filter> status: Discharging
CPU:       Info: Quad Core model: Intel Core i7-1065G7 bits: 64 type: MT MCP arch: Ice Lake family: 6 model-id: 7E (126)
           stepping: 5 microcode: A6 cache: L1: 320 KiB L2: 2 MiB L3: 8 MiB
           flags: avx avx2 ht lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx bogomips: 23961
           Speed: 1128 MHz min/max: 400/3900 MHz Core speeds (MHz): 1: 1052 2: 1157 3: 1111 4: 1101 5: 1137 6: 1100 7: 1100
           8: 1101
           Vulnerabilities: Type: itlb_multihit status: KVM: VMX disabled
           Type: l1tf status: Not affected
           Type: mds status: Not affected
           Type: meltdown status: Not affected
           Type: spec_store_bypass mitigation: Speculative Store Bypass disabled via prctl
           Type: spectre_v1 mitigation: usercopy/swapgs barriers and __user pointer sanitization
           Type: spectre_v2 mitigation: Enhanced IBRS, IBPB: conditional, RSB filling
           Type: srbds status: Not affected
           Type: tsx_async_abort status: Not affected
Graphics:  Device-1: Intel Iris Plus Graphics G7 vendor: Lenovo driver: i915 v: kernel bus-ID: 00:02.0 chip-ID: 8086:8a52
           class-ID: 0300
           Device-2: IMC Networks Integrated Camera type: USB driver: uvcvideo bus-ID: 3-1:2 chip-ID: 13d3:56b2 class-ID: 0e02
           Display: wayland server: X.Org 1.21.1.3 compositor: kwin_wayland driver: loaded: intel display-ID: :1 screens: 1
           Screen-1: 0 s-res: 1920x1080 s-dpi: 96 s-size: 508x285mm (20.0x11.2") s-diag: 582mm (22.9")
           Monitor-1: XWAYLAND0 res: 1920x1080 hz: 60 dpi: 157 size: 310x170mm (12.2x6.7") diag: 354mm (13.9")
           OpenGL: renderer: Mesa Intel Iris Plus Graphics (ICL GT2) v: 4.6 Mesa 21.2.5 direct render: Yes
Audio:     Device-1: Intel Ice Lake-LP Smart Sound Audio vendor: Lenovo driver: sof-audio-pci-intel-icl
           alternate: snd_hda_intel,snd_sof_pci_intel_icl bus-ID: 00:1f.3 chip-ID: 8086:34c8 class-ID: 0401
           Sound Server-1: ALSA v: k5.15.5-zen1-1-zen running: yes
           Sound Server-2: JACK v: 1.9.19 running: no
           Sound Server-3: PulseAudio v: 15.0 running: no
           Sound Server-4: PipeWire v: 0.3.40 running: yes
Network:   Device-1: Intel Ice Lake-LP PCH CNVi WiFi driver: iwlwifi v: kernel bus-ID: 00:14.3 chip-ID: 8086:34f0
           class-ID: 0280
           IF: wlp0s20f3 state: up mac: <filter>
           IF-ID-1: anbox0 state: down mac: <filter>
Bluetooth: Device-1: Intel AX201 Bluetooth type: USB driver: btusb v: 0.8 bus-ID: 3-10:4 chip-ID: 8087:0026 class-ID: e001
           Report: bt-adapter ID: hci0 rfk-id: 3 state: up address: <filter>
Drives:    Local Storage: total: 476.94 GiB used: 27.73 GiB (5.8%)
           SMART Message: Unable to run smartctl. Root privileges required.
           ID-1: /dev/nvme0n1 maj-min: 259:0 vendor: Samsung model: MZVLB512HBJQ-000L2 size: 476.94 GiB block-size:
           physical: 512 B logical: 512 B speed: 31.6 Gb/s lanes: 4 type: SSD serial: <filter> rev: 3L1QEXF7 temp: 35.9 C
           scheme: GPT
Partition: ID-1: / raw-size: 379.01 GiB size: 379.01 GiB (100.00%) used: 27.7 GiB (7.3%) fs: btrfs dev: /dev/nvme0n1p4
           maj-min: 259:4
           ID-2: /boot/efi raw-size: 260 MiB size: 256 MiB (98.46%) used: 29.1 MiB (11.3%) fs: vfat dev: /dev/nvme0n1p1
           maj-min: 259:1
           ID-3: /home raw-size: 379.01 GiB size: 379.01 GiB (100.00%) used: 27.7 GiB (7.3%) fs: btrfs dev: /dev/nvme0n1p4
           maj-min: 259:4
           ID-4: /var/log raw-size: 379.01 GiB size: 379.01 GiB (100.00%) used: 27.7 GiB (7.3%) fs: btrfs dev: /dev/nvme0n1p4
           maj-min: 259:4
           ID-5: /var/tmp raw-size: 379.01 GiB size: 379.01 GiB (100.00%) used: 27.7 GiB (7.3%) fs: btrfs dev: /dev/nvme0n1p4
           maj-min: 259:4
Swap:      Kernel: swappiness: 133 (default 60) cache-pressure: 100 (default)
           ID-1: swap-1 type: zram size: 11.25 GiB used: 0 KiB (0.0%) priority: 100 dev: /dev/zram0
Sensors:   System Temperatures: cpu: 49.0 C mobo: N/A
           Fan Speeds (RPM): N/A
Info:      Processes: 290 Uptime: 23m wakeups: 1062 Memory: 11.26 GiB used: 4.11 GiB (36.5%) Init: systemd v: 249
           tool: systemctl Compilers: gcc: 11.1.0 clang: 13.0.0 Packages: 1632 pacman: 1624 lib: 372 flatpak: 8 Shell: fish
           v: 3.3.1 default: Bash v: 5.1.12 running-in: konsole inxi: 3.3.09
1 Like

Hello, that file is created by several utilities such as lxappearance, Gnome Settings, or any other GTK program that set GTK options for the 2.x version. What kind of problem is it causing you? The solution here is: Do not remove the file, it's even a hidden file.

Anyways, you can try renaming the file, rebooting, and checking if the file is created again or not. If it isn't created again then leave the file renamed and see if nothing breaks (regarding theming), then delete it after you're sure.

4 Likes

That file should not cause any issues, so curious why you want it gone. Also, removing it, means any gtk2 app will not apply any KDE/GTK themes, and look like an old Window$ 95 app.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.