Cannot create profile directory /.config/inkscape

Summary:

Each time I start Inkscape I'm getting error message: "Cannot create profile directory /.config/inkscape." Screenshot_from_2021-07-27_12-32-09

Moreover my settings are not being saved.

Steps to reproduce:

  • open Inkscape
  • wait until popup with error message "Cannot create profile directory /.config/inkscape." appears
  • close popup window by clicking "OK"
  • change settings (e.g. Appearance to "Classic Symbolic")
  • restart Inkscape

What happened?

After restart popup with error message appears again Settings are not saved (in our example Appearance is "Classic Inkscape (default)"

In console there are warning messages that /.config/inkscape can't be created or accessed:

Gtk-Message: 13:39:20.002: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:39:20.010: Failed to load module "canberra-gtk-module"
Fontconfig warning: "/etc/fonts/conf.avail/53-monospace-lcd-filter.conf", line 10: Having multiple values in <test> isn't supported and may not work as expected

** (org.inkscape.Inkscape:25852): WARNING **: 13:39:24.025: Could not create directory '/.config/inkscape'

** (org.inkscape.Inkscape:25852): WARNING **: 13:39:24.025: Could not create extension error log file '/.config/inkscape/extension-errors.log'

** (org.inkscape.Inkscape:25852): WARNING **: 13:39:24.062: Fonts dir '/.config/inkscape/fonts' does not exist and will be ignored.

** (org.inkscape.Inkscape:25852): WARNING **: 13:39:35.677: Can't open file: /.config/inkscape/cphistory.xml (doesn't exist)

** (org.inkscape.Inkscape:25852): WARNING **: 13:39:35.678: Could not create directory '/.config/inkscape'
Unable to find: org.inkscape.extensions.manager
build_menu: no verb with id: org.inkscape.extensions.manager
void Inkscape::UI::Dialog::DialogManager::restore_dialogs_state(Inkscape::UI::Dialog::DialogContainer*, bool): dialogs state not loaded - No such file or directory
Canvas::on_idle: clean region is empty!
void Inkscape::UI::Dialog::DialogManager::save_dialogs_state(Inkscape::UI::Dialog::DialogContainer*): Failed to create file “/.config/inkscape/dialogs-state.ini.555S60”: No such file or directory

It seems that home dir is not properly set. It should be something like "/home/USER/.config/inkscape/" instead of simple "/.config/inkscape/" in root directory where Inkscape can't access.

Exporting proper path to INKSCAPE_PROFILE_DIR does not make any effects.

I also tried to hack a bit and create this directory in a root:

sudo mkdir -p /.config/inkscape
sudo chown USER /.config/inkscape/
chmod a+w /.config/inkscape
inkscape

but after that I'm still getting the same warning messages in console and the same popup error appears.

What should have happened?

Profile path should be properly set (e.g. "/home/USER/.config/inkscape/") Profile directory should be created Settings should be saved to profile directory and properly read after restart of Inkscape

Version info

Gtk-Message: 13:52:52.387: Failed to load module "canberra-gtk-module"
Gtk-Message: 13:52:52.388: Failed to load module "canberra-gtk-module"
Inkscape 1.1 (ce6663b3b7, 2021-05-25)

    GLib version:     2.64.6
    GTK version:      3.24.20
    glibmm version:   2.64.2
    gtkmm version:    3.24.2
    libxml2 version:  2.9.10
    libxslt version:  1.1.34
    Cairo version:    1.16.0
    Pango version:    1.44.7
    HarfBuzz version: 2.6.4
    Poppler version:  0.86.1

    OS version:       Ubuntu Core 20

This happened just after I installed Inkscape 1.1. Previously there was no such issue with version 0.92. I installed version 1.1 from Ubuntu Software.

Edited by Rafał Orłowski