Coder Social home page Coder Social logo

Options not saved about qtractor HOT 5 CLOSED

rncbc avatar rncbc commented on August 28, 2024
Options not saved

from qtractor.

Comments (5)

rncbc avatar rncbc commented on August 28, 2024 1

glad you 're good now; it probably was a permissions issue after all, on the ~/.config/rncbc.org directory and not on the .conf file.

i think the issue may be closed now.
cheers

from qtractor.

rncbc avatar rncbc commented on August 28, 2024

that's not reproduced here:
of course, changing any options do have their due effects thereafter, as expected by design.
something is not right on your side, sorry to tell.
please be a little more investigative and every time you change an option, check whether it makes it to the ~/.config/rncbc.org/Qtractor.conf file or else...
hope you sort it out
cheers

EDIT: please note that when running qtractor as root (eg. sudo ... whatever) then the configuration file is quite and most probably /root/.config/rncbc.org/Qtractor.conf and not your regular user based ~/.config/...

from qtractor.

DLongoni avatar DLongoni commented on August 28, 2024

Firstly, thanks for the reply.
I agree that there is something wrong on my side, I was hoping I could find some insight on how to solve the issue.
I can tell you for instance that the same behaviour occurs for audio metronome options, and evenfor recent files. That is, if I open a file, then close and reopen qtractor then I won't see it listed under recents. On the other hand, if I sudo qtractor and open a file, then it will be listed under recent if I both open it as a regular user or as a super user.

I believe the place to look at is the QSettings constructor in qtractorOptions.cpp:
qtractorOptions::qtractorOptions (void)
: m_settings(QTRACTOR_DOMAIN, QTRACTOR_TITLE)

In particular refering to QSettings doc
http://doc.qt.io/qt-5/qsettings.html
in the "Fallback Mechanism" section. The system scope vs user scope mechanism is explained.

On the one hand I would think that QSettings on my system somehow can't find the right config file to be saved. On the other hand the right config file is loaded, so it does not make sense to me that QSettings is loading from one file and saving to another. I would exclude also that it's a permission problem since I already changed the config file access permission.

Does this additional analysis ring any bell for you?

Thanks again.

from qtractor.

rncbc avatar rncbc commented on August 28, 2024

please check on the Platform-Specific Notes whether you have a stumbler on your $XDG_CONFIG_DIRS like /etc/xdg/rncbc.org/Qtractor.conf

that might, just might be a reason for your troubles...

if all still puzzles you, please get rid of any, i mean ANY ...rncbc.org/Qtractor.confyou may find on your file-system and then track which one is created/updated when you run qtractor.

that said, you must realize that looking to change the source code is not going to work: the way it i runs runs for more than a decade now, on a plenty of disparate linux systems, distros and users; it is NOT in the source where the problem resides, trust me. ;)

hth.
cheers

from qtractor.

DLongoni avatar DLongoni commented on August 28, 2024

My aim is just to find a solution to my problem, I have clearly no interest in changing the code for my own sake. And I trust you, don't worry (=

As a matter of fact I just checked all the possible locations including $XDG_CONFIG_DIRS subdirectories, but the only qtractor.conf to be found was ~/.config/rncbc.org/Qtractor.conf

I had already tried to remove it and have qtractor regenerate it, with no success.

I finally solved the issue removing the whole rncbc.org folder. Restarting qtractor recreated the folder and Qtractor.conf inside it. The changes then were persistent.

Thank you for you help.

from qtractor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.