Results 1 to 5 of 5

Thread: QSettings::SystemScope in Linux

  1. #1
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default QSettings::SystemScope in Linux

    Does anyone else have problems using QSettings::SystemScope in Linux?
    According to the docs, folder /etc/xdg/ is used for storing system-wide settings.
    At least in my Kubuntu Breezy installation, this folder doesn't have a write permission for normal users.

    Btw. TT seems to be updating their website and I couldn't access Task Tracker to check if this is a known issue..
    J-P Nurmi

  2. #2
    Join Date
    Mar 2006
    Posts
    172
    Thanks
    30
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Thumbs down Re: QSettings::SystemScope in Linux

    I think this folder generally does have write permissions for users other than root, infact I too have the same problem!! In my observation most programs that have written to /etc/xdg/ have done so when I was logged in as root. I don't think this folder is given write permissions on all systems .... i use SuSE 10.

    Cheers

    Nupul

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSettings::SystemScope in Linux

    AFAIR Qt3 behaves in the same way (i.e. normal users can't change the system-wide settings unless you change the access rights). IMO the reason is simple --- it's administrator's responsibility to setup the system and normal users shouldn't mess with that.

  4. #4
    Join Date
    Feb 2006
    Location
    Oslo, Norway
    Posts
    6,264
    Thanks
    36
    Thanked 1,519 Times in 1,389 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60 Maemo/MeeGo

    Default Re: QSettings::SystemScope in Linux

    Oh, that's a pity. I'm working on an application which has a remote user authetication. I had planned to store all application's user specific settings in a global location, so that all users of the application could retain their personal settings regardless of the current OS login. QSettings::SystemScope would've been perfect for this.. (..and actually, in Windows, it still is)

    I suppose there is no distro/desktop independant folder like /etc/something which would have write permission for all users by default. Yuck, that even sounds like a horrible security threat.
    J-P Nurmi

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QSettings::SystemScope in Linux

    Quote Originally Posted by jpn
    I had planned to store all application's user specific settings in a global location, so that all users of the application could retain their personal settings regardless of the current OS login. QSettings::SystemScope would've been perfect for this..
    Just set the correct access rights for the .conf file and everything will work.

Similar Threads

  1. Replies: 5
    Last Post: 15th January 2009, 09:03
  2. Weird problem: multithread QT app kills my linux
    By Ishark in forum Qt Programming
    Replies: 2
    Last Post: 8th August 2008, 09:12
  3. Deploying App on Linux
    By janus in forum Installation and Deployment
    Replies: 5
    Last Post: 6th May 2008, 21:18
  4. Replies: 19
    Last Post: 21st January 2008, 09:13

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.