Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-50789

QSettings, QFileDialog, and environment variable $HOME

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P1: Critical P1: Critical
    • None
    • 5.5.1
    • Core: I/O
    • None
    • Linux

      When using QSettins directly:
      QSettings::setPath(QSettings::NativeFormat, QSettings::UserScope, "$HOME/.config");
      which is default value,
      QSettings will write to folder $HOME/.config

      -but when QFileDialog::getSaveFileName(NULL ,"Save","X") will be used
      it will create directory $HOME in current directory and write some stuff there - instead to real home, or at least QSettings should write to $HOME in current directory too.

      Example attached, use on linux.

        1. FFF.zip
          9 kB
          mir3x
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            laknoll Lars Knoll
            mir3x mir3x
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes