Choose style:

Author Topic: Fix for making theme custom colours persistent across reboots  (Read 2640 times)

0 Members and 1 Guest are viewing this topic.

Offline PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 25933
  • Karma: 2835
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 10
Fix for making theme custom colours persistent across reboots
« on: October 15, 2014, 10:52:54 pm »
There was a bug in lxsession in 14.04 that stopped custom colours being saved across a reboot.

If you go to
menu > Preferences > Customize Look and Feel > Colour (tab)

and tick the box "Use customised colour scheme"

Any changes you made were applied (after hitting Apply), but as soon as you logged off/on the custom colours were ignored and the theme defaults were used again.

The fix...

First you need to install the version of lxsession from Utopic :-

For 32bit Peppermint 5
https://launchpad.net/ubuntu/+source/lxsession/0.4.9.2+git20140410-0ubuntu3/+build/6360181/+files/lxsession_0.4.9.2%2Bgit20140410-0ubuntu3_i386.deb

for 64bit Pepppermint 5
https://launchpad.net/ubuntu/+source/lxsession/0.4.9.2+git20140410-0ubuntu3/+build/6360178/+files/lxsession_0.4.9.2%2Bgit20140410-0ubuntu3_amd64.deb

Double-click the downloaded file to install

Now run:
Code: [Select]
gedit ~/.config/lxsession/Peppermint/desktop.conf
and if it contains a line that reads

iGtk/ColorScheme=

Comment it out, so it now reads

#iGtk/ColorScheme=

SAVE the file .. then log off/on

Now custom colours will persist across logins/reboots.



reference:
https://bugs.launchpad.net/ubuntu/+source/lxsession/+bug/1316384
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec

Offline VinDSL

  • Global Moderator
  • Hero
  • *****
  • Posts: 5397
  • Karma: 948
  • Peppermint Mod
    • View Profile
  • Peppermint version(s): Developmental Builds
Re: Fix for making theme custom colours persistent across reboots
« Reply #1 on: October 16, 2014, 12:52:37 am »
Nice find!

Thx  ;)

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Fix for making theme custom colours persistent across reboots
« Reply #2 on: October 16, 2014, 02:41:38 am »
Hi Mark, my 64bit system is have none of it.  It kicks up this error:



Tried to install from the CLI and this is the output:
Spoiler (click here to view / hide)
andy@AMILO-Li3710 ~/Desktop $ ls
google-chrome.desktop                             peppermintforum.desktop
googledrive.desktop                               radiofreeamsterdam.desktop~
lxsession_0.4.9.2+git20140410-0ubuntu3_amd64.deb  wikipedia.desktop
andy@AMILO-Li3710 ~/Desktop $ sudo dpkg -i lxsession_0.4.9.2+git20140410-0ubuntu3_amd64.deb
sudo: /etc/sudoers.d/mintupdate is owned by uid 1000, but should be 0
[sudo] password for andy:
(Reading database ... 231023 files and directories currently installed.)
Preparing to unpack lxsession_0.4.9.2+git20140410-0ubuntu3_amd64.deb ...
Unpacking lxsession (0.4.9.2+git20140410-0ubuntu3) over (0.4.9.2+git20140410-0ubuntu1.1) ...
Setting up lxsession (0.4.9.2+git20140410-0ubuntu3) ...
update-alternatives: using /usr/bin/lxsession to provide /usr/bin/x-session-manager (x-session-manager) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/lxsession-manager.1.gz because associated file /usr/share/man/man1/lxsession.1.gz (of link group x-session-manager) doesn't exist
andy@AMILO-Li3710 ~/Desktop $
[close]

I remove and purged the:
Code: [Select]
mintupdate_4.6.7+peppermint5_all.deb

Tried again to install:
Code: [Select]
lxsession_0.4.9.2+git20140410-0ubuntu3_amd64.deb
Again errors:
Spoiler (click here to view / hide)
andy@AMILO-Li3710 ~/Desktop $ sudo dpkg -i lxsession_0.4.9.2+git20140410-0ubuntu3_amd64.deb
(Reading database ... 230964 files and directories currently installed.)
Preparing to unpack lxsession_0.4.9.2+git20140410-0ubuntu3_amd64.deb ...
Unpacking lxsession (0.4.9.2+git20140410-0ubuntu3) over (0.4.9.2+git20140410-0ubuntu3) ...
Setting up lxsession (0.4.9.2+git20140410-0ubuntu3) ...
update-alternatives: using /usr/bin/lxsession to provide /usr/bin/x-session-manager (x-session-manager) in auto mode
update-alternatives: warning: skip creation of /usr/share/man/man1/lxsession-manager.1.gz because associated file /usr/share/man/man1/lxsession.1.gz (of link group x-session-manager) doesn't exist
andy@AMILO-Li3710 ~/Desktop $
[close]
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.

Offline AndyInMokum

  • Global Moderator
  • Hero
  • *****
  • Posts: 4808
  • Karma: 1013
  • "Keep on Rockin' in the Free World"
    • View Profile
  • Peppermint version(s): PM 9 & PM 8 Respin-2 (64-bit)
Re: Fix for making theme custom colours persistent across reboots
« Reply #3 on: October 16, 2014, 03:05:59 am »
Mmmm, lxsession_0.4.9.2+git20140410-0ubuntu3_amd64.deb may have kicked errors on installation.  The desktop.conf file could be edited and after a reboot, the "Use customised colour scheme" error appears to be resolved.  Nice one  ;)!!
Backup! Backup! Backup! If you're missing any of these -  you ain't Backed Up!
For my system info please L/click HERE.