Create other folder with qmake/Qt -


using qt creator (sailfishos sdk), myapp.pro make directory in /home/nemo/.local/share store user's data on installation files /home/nemo/.local/share/myapp/data.extension.

i tried:

newdirectory.extra = mkdir /home/nemo/.local/share/myapp installs += newdirectory 

but got @ compile time:

mkdir: cannot create directory '/home/nemo/.local/share/myapp': permission denied 

does knows qt way that?

thank you

i think confusing install targets deployment. install targets used when make install. read how app packaging sailfishos done.

besides, bad idea use installation procedure create directory store app settings , stuff. app itself. create directory if doesn't exist yet, example if it's first time app started or if user deleted directory accidentally.


Comments

Popular posts from this blog

How to group boxplot outliers in gnuplot -

cakephp - simple blog with croogo -

bash - Performing variable substitution in a string -