[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-08-12 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=417534

vmarine...@posteo.net changed:

   What|Removed |Added

 CC||vmarine...@posteo.net

--- Comment #8 from vmarine...@posteo.net ---
BUMP. Any progress on merging/extending @Guilherme Silva's patch?
I also have this issue. 

Logs from .xsession-errors:
> kdeinit5: Got SETENV 
> 'GTK_RC_FILES=/etc/gtk/gtkrc:/home/vlad/.gtkrc:/home/vlad/.config/gtk-1.0/gtkrc:/home/vlad/.config/gtkrc'
>  from launcher.
> kdeinit5: Got SETENV 
> 'GTK2_RC_FILES=/etc/gtk-2.0/gtkrc:/home/vlad/.gtkrc-2.0:/home/vlad/.config/gtk-2.0/gtkrc:/home/vlad/.config/gtkrc-2.0'
>  from launcher.

However, only gtkrc-2.0 is created.

@Guilherme Silva, I am skeptical to disable GTKd background service. What does
it do?  Also thank you for the patch.



Thank you to all KDE team. I love Plasma!

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-06-09 Thread Guilherme Silva
https://bugs.kde.org/show_bug.cgi?id=417534

--- Comment #7 from Guilherme Silva  ---
Created attachment 129154
  --> https://bugs.kde.org/attachment.cgi?id=129154=edit
Patch for kde-gtk-config 5.19.80

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-06-09 Thread Guilherme Silva
https://bugs.kde.org/show_bug.cgi?id=417534

--- Comment #6 from Guilherme Silva  ---
Created attachment 129153
  --> https://bugs.kde.org/attachment.cgi?id=129153=edit
Patch for kde-gtk-config 5.18.5

Actually, never mind my last e-mail. The real culprit is the kde-gtk-config
daemon.

Once I:

- Disable its service ("Plasma GTKd") in Plasma's Background Services manager
- Remove the empty ~/.gtkrc-2.0 file
- And, finally, re-login, the file isn't created anymore.

So, brand new steps to reproduce:

1. Open the Background Services manager:
   $ kcmshell5 kcmkded
2. Search and disable "Plasma GTKd", hit OK.
3. Make sure there's no .gtkrc-2.0 file in your home folder.
4. Open the Background Services again, but now with GTK2_RC_FILES set:
   $ env GTK2_RC_FILES=/tmp/gtkrc kcmshell5 kcmkded
5. Re-enable the "Plasma GTKd" service, hit Apply.
6. There should be an empty .gtkrc-2.0 in your home now:
   $ file ~/.gtkrc-2.0
   /home/gui/.gtkrc-2.0: empty

I've fixed it locally (without any heavy testing, however) by removing some
duplicated code and creating a method that will either respect GTK2_RC_FILES or
fallback to ~/.gtkrc-2.0, if GTK2_RC_FILES isn't set or if it's empty.

I'm attaching two patches (they accomplish the same): The first one I made for
kde-gtk-config v5.18.5 (the latest version on Arch), and the other one which I
just rebased against commit 380bff1f (v5.19.80).

KDE Devs: Feel free to use it (or not), modify it, whatever. I'm reluctant to
submit it for review, because I _really_ don't program in C++. So if did that
and you guys' asked for modifications, I'd be wasting your time.

If the patch is ready to merge, awesome! If it's not, then I'm sorry.

And thank you for making Plasma so awesome. :)

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-06-08 Thread Guilherme Silva
https://bugs.kde.org/show_bug.cgi?id=417534

--- Comment #5 from Guilherme Silva  ---
Sorry I took this long to respond.

Yes, I can still reproduce this on Plasma 5.18.5.

A quick search for ".gtkrc-2.0" on KDE's org on Github showed me this file
(specifically, the writeGtk2Settings() method):

https://github.com/KDE/plasma-workspace/blob/7f2ae10539f2167663aab713986e3f5e0528289f/gmenu-dbusmenu-proxy/menuproxy.cpp#L169

That method doesn't address the GTK2_RC_FILES variable, instead it hardcodes it
to ~/.gtkrc-2.0. A bit down in the code, that method is called by
writeGtk2Settings(), which I guess ends up creating a new (but empty)
.gtkrc-2.0 in my home directory.

Just a wild guess, though. I'm not a C++ programmer but I'll try fixing it
locally, and I'll let you guys know if that's what's causing the problem.

Thanks.

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-06-05 Thread stephane . gleizes
https://bugs.kde.org/show_bug.cgi?id=417534

stephane.glei...@gmail.com  changed:

   What|Removed |Added

 CC||stephane.glei...@gmail.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-05-23 Thread bugzilla_noreply
https://bugs.kde.org/show_bug.cgi?id=417534

aliceaccou...@protonmail.com changed:

   What|Removed |Added

 Resolution|WAITINGFORINFO  |---
 Status|NEEDSINFO   |CONFIRMED
 CC||aliceaccou...@protonmail.co
   ||m
 Ever confirmed|0   |1
   Platform|Archlinux Packages  |unspecified

--- Comment #4 from aliceaccou...@protonmail.com ---
can repro on 5.18.5

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-05-09 Thread Bug Janitor Service
https://bugs.kde.org/show_bug.cgi?id=417534

--- Comment #3 from Bug Janitor Service  ---
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least
15 days. Please provide the requested information as soon as
possible and set the bug status as REPORTED. Due to regular bug
tracker maintenance, if the bug is still in NEEDSINFO status with
no change in 30 days the bug will be closed as RESOLVED > WORKSFORME
due to lack of needed information.

For more information about our bug triaging procedures please read the
wiki located here:
https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please
mark the bug as REPORTED so that the KDE team knows that the bug is
ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-04-25 Thread Mikhail Zolotukhin
https://bugs.kde.org/show_bug.cgi?id=417534

Mikhail Zolotukhin  changed:

   What|Removed |Added

 CC||zom...@protonmail.com
 Status|REPORTED|NEEDSINFO
 Resolution|--- |WAITINGFORINFO

--- Comment #2 from Mikhail Zolotukhin  ---
GTK daemon does not create empty .gtkrc-2.0 and respect GTK2_RC_FILES env
variable. Something other is creating it. Could you still reproduce?

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-03-15 Thread Reuben
https://bugs.kde.org/show_bug.cgi?id=417534

Reuben  changed:

   What|Removed |Added

 CC||reube...@yahoo.com

-- 
You are receiving this mail because:
You are watching all bug changes.

[plasmashell] [Bug 417534] Empty ~/.gtkrc-2.0 file is created every time I login

2020-02-13 Thread Guilherme Silva
https://bugs.kde.org/show_bug.cgi?id=417534

--- Comment #1 from Guilherme Silva  ---
Probably related to this? https://phabricator.kde.org/D26261

I skimmed through the code a bit and noticed the GTK2 config path is hardcoded
to ~/.gtkrc-2.0, plus there's no mention of GTK2_RC_FILES.

-- 
You are receiving this mail because:
You are watching all bug changes.