![]() |
Problem with QFile
Hi,
I'm developing software called QtIrreco with Qt and now that I've changed the path from /home/user/MyDocs/qtirreco and /home/user/.qtirreco to /opt/qtirreco application is unable to make new files with QFile class. When running application with gainrooted terminal it can, but the app can't connect socket that way. So how i can make it work when it's ran from the desktop file. Thanks. |
Re: Problem with QFile
I guess you need to set the permissions on that directory correctly. The program is going to be run as "user" I think, so make sure "user" has writing permissions on that folder.
Have you tried changing the owner of /opt/qtirreco directory to user using "chown user /opt/qtirreco"? Then make sure user has the writing permission with "chmod u+w /opt/qtirreco"... |
Re: Problem with QFile
I have this same problem, too. The given solution from Talvis is good but is there any other solutions to make this kind of official way?
I mean that I want to publish my application in Ovi Store so I have to be sure that this works for everyone who downloads the application. I cannot say everyone to change permission settings before using the application. |
All times are GMT. The time now is 16:30. |
vBulletin® Version 3.8.8