Reply
Thread Tools
Posts: 71 | Thanked: 33 times | Joined on Sep 2009
#1
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.
 
Posts: 12 | Thanked: 7 times | Joined on Sep 2009 @ Finland
#2
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"...
 

The Following 2 Users Say Thank You to Talvis For This Useful Post:
Posts: 2 | Thanked: 0 times | Joined on Mar 2011
#3
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.
 
Reply


 
Forum Jump


All times are GMT. The time now is 23:44.