[Users] BONUS! Re: Gtk warnings when launching Claws Mail from a terminal window in KDE

Pierre Fortin pf at pfortin.com
Fri May 6 05:57:42 UTC 2022


On Thu, 5 May 2022 16:56:22 +0100 Brad Rogers wrote:

Hi Brad,

KUDOS to you!!!!

>>Exec=env GTK_THEME=your_theme_here claws-mail %u  
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This secret sauce gave me hope; but alas...  I followed your
instructions; but it made no difference; then I realized it was likely
due to how CM was started: cli vs App Menu vs Desktop icon, etc...

Using that info as a guide, I found more files containing "claws-mail"
and since I run two instances of CM, applied the environment variable to
every potential call to CM:



pfortin.desktop:
Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail
--alternate-config-dir .claws-mail.pfortin

pierre.desktop:
Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail
--alternate-config-dir .claws-mail.pierre

'pfortin claws-mail.desktop':
# Changed "Exec=" to read:
[Desktop Action ComposeMail]
Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail
--alternate-config-dir .claws-mail.pfortin --compose
...
[Desktop Action GetMail]
Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail
--alternate-config-dir .claws-mail.pfortin --receive-all
...
[Desktop Action SendFile]
Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail
--alternate-config-dir .claws-mail.pfortin --compose --attach %f
...
[Desktop Entry]
...
Exec=env GTK_THEME=Breeze /usr/local/bin/claws-mail
--alternate-config-dir .claws-mail.pfortin %u

Likewise for 'pierre claws-mail.desktop'

Oh yeah...  I added "BONUS!" in the Subject -- the above changes also
resolved the issue of losing colors when CM loses mouse focus. I updated
https://www.thewildbeast.co.uk/claws-mail/bugzilla/show_bug.cgi?id=4509
with this info...

Question: couldn't this also be resolved with:
   .bashrc:
   export GTK_THEME=Breeze
? I tried on my old laptop; but that didn't help -- does CM need to be
aware of an exported variable vs locally specified on the command line, or
is it only of value to GTK? Suspecting the latter; but asking in case it
would help if CM was aware of, and informing GTK of this variable...

HTH someone else...

Pierre

PS Hitting Send on this message gives the "Attachment warning" dialog
due to "--alternate-config-dir"...  Was this an update?


More information about the Users mailing list