Xfce Mousepad not saving settings

Hi everyone,

Mousepad doesn't seem to be saving any of it's settings after you close the application.
For example, "show line numbers", color themes, etc.

I removed the ~/.config/Mousepad directory, but no joy.

Any ideas?
 
Hi everyone,

Mousepad doesn't seem to be saving any of it's settings after you close the application.
For example, "show line numbers", color themes, etc.

I removed the ~/.config/Mousepad directory, but no joy.

Any ideas?

I'm puzzled, I fixed settings for GTK3 option (revision r410996) and before tested several times with default options, everything should be ok.

Mousepad uses GSettings instead of Xfconf (equivalent of GSettings, but store preferences into XML files). First you need backend for GSettings. Install devel/gconf2 (obsolete) and devel/dconf.

Then, search Mousepad's settings:

Code:
gsettings list-schemas | grep org.xfce.mousepad

Line numbers are defined in org.xfce.mousepad.preferences.

To display keys / values recursively of org.xfce.mousepad.preferences:

Code:
gsettings list-recursively org.xfce.mousepad.preferences

To display current value of show-line-numbers property:

Code:
gsettings get org.xfce.mousepad.preferences.view show-line-numbers

To change current value:

Code:
gsettings set org.xfce.mousepad.preferences.view show-line-numbers true
 
  • Thanks
Reactions: G4
Hi,

thanks for your reply.

I installed devel/dconf and now everything works :)

EDIT: Ok, turns out that the Preferences -> Editor -> Tab Mode setting doesn't get saved after closing the application, it always defaults to "Insert Tabs".

EDIT2: No actually that setting works and is saved properly, it's just that there seems to be a GUI bug.

At startup it always defaults to "Insert Tabs", even though:
Code:
org.xfce.mousepad.preferences.view insert-spaces true

Functionally it does insert spaces as it should, just that the combobox doesn't reflect the actual setting being read at startup.
 
Back
Top