i use this in my .pro file to install a config file to ~/.programrc:
configfile.path = /${HOME}
configfile.files = .programrc
INSTALLS += configfile
configfile.path = /${HOME}
configfile.files = .programrc
INSTALLS += configfile
To copy to clipboard, switch view to plain text mode
This works, "make install" copies the .programrc to $HOME, but the file is owned by root:
$ ls -l .programmrc
-rw-r--r-- 1 root root 432 2008-05-19 11:02 /home/totycro/.programrc
$ ls -l .programmrc
-rw-r--r-- 1 root root 432 2008-05-19 11:02 /home/totycro/.programrc
To copy to clipboard, switch view to plain text mode
How can i change the ownership of the file to the user during the installation?
Bookmarks