Page 1 of 1

How to set environment variables for the calibre program (to get dark theme) in Mint Cinnamon [solved]

Posted: Fri Mar 20, 2020 1:34 pm
by pepperminty
I'd like to change the theme of Calibre and the developer has made his program quite customizable: https://manual.calibre-ebook.com/customize.html#id1 . According to that link, we can use "CALIBRE_USE_SYSTEM_THEME".

My question is: How do we set this environment variable on Linux Mint Cinnamon?

Thanks!

Re: How to set environment variables for the calibre program in Mint Cinnamon.

Posted: Fri Mar 20, 2020 5:54 pm
by karlchen
pepperminty wrote: Fri Mar 20, 2020 1:34 pmHow do we set this environment variable on Linux Mint Cinnamon?
In the same what as on Linux Mint xfce, Linux Mint Mate and even on Ubuntu. :wink:

Re: How to set environment variables for the calibre program in Mint Cinnamon.

Posted: Fri Mar 20, 2020 6:44 pm
by pepperminty
some minter helped me with this:

env CALIBRE_USE_DARK_PALETTE=1 calibre .

i then just modified the command line in the calibre shortcut i dragged from my mint menu to the panel

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Fri Mar 20, 2020 6:55 pm
by karlchen
In analogy, the variable CALIBRE_USE_SYSTEM_THEME could be set in the same way:
env CALIBRE_USE_SYSTEM_THEME=1 calibre
Really, the online help could be a bit more specific on how to set the (optional) environment variables on Linux systems. :(

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Fri Mar 20, 2020 6:58 pm
by pepperminty
karichen,
initially, i tried env CALIBRE_USE_SYSTEM_THEME=1 calibre but it did nothing. i then tried env CALIBRE_USE_DARK_PALETTE=1 calibre and it worked. the developer said he didn't give instructions for linux because there's multiple answers (because there's multiple linux flavors)

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Fri Mar 27, 2020 4:58 pm
by wopaterno
Could you please send a screenshot I can't put in calibre dark mode in Linux mint 19.3 Cinnamon

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Fri Mar 27, 2020 5:01 pm
by pepperminty
wopaterno wrote: Fri Mar 27, 2020 4:58 pm Could you please send a screenshot I can't put in caliber dark mode in Linux mint
screenshot of what?

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Fri Mar 27, 2020 5:02 pm
by pepperminty
wopaterno wrote: Fri Mar 27, 2020 4:58 pm Could you please send a screenshot I can't put in caliber dark mode in Linux mint
you put the wrong one. you should put in this:

env CALIBRE_USE_DARK_PALETTE=1 calibre

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Fri Mar 27, 2020 5:19 pm
by wopaterno
No case, change the command and reboot the system and nothing

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Fri Mar 27, 2020 5:25 pm
by pepperminty
could you try opening a Terminal and running the same command

env CALIBRE_USE_DARK_PALETTE=1 calibre

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Sat Mar 28, 2020 12:55 am
by wopaterno
Yes now, thank you !! I am happy

Re: How to set environment variables for the calibre program in Mint Cinnamon [solved]

Posted: Sat Mar 28, 2020 8:04 am
by pepperminty
You're welcome.

Re: How to set environment variables for the calibre program (to get dark theme) in Mint Cinnamon [solved]

Posted: Thu Sep 08, 2022 1:29 am
by jeffmcneill
FYI, they moved this into an option under Settings > Preferences > Look & Feel > Main Interface > Color Palette

Re: How to set environment variables for the calibre program (to get dark theme) in Mint Cinnamon [solved]

Posted: Thu Sep 15, 2022 8:31 am
by pepperminty
jeffmcneill wrote: Thu Sep 08, 2022 1:29 am FYI, they moved this into an option under Settings > Preferences > Look & Feel > Main Interface > Color Palette
Thanks, Jeff. I appreciate this helpful information. I've made the change in that place you instructed. Now there's no need to mess with the terminal. :)