[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re: installing an end user editable file

Hey Craig,

thanks for the help,

Basically I'm copying over a text file that has a list of web links
in, after the program is installed the file needs to be edited by the
end user, so I'm trying to put the file in a place where a regular
user would have permission to both read and write to the text file.

Some people have suggested putting it in home/<user>/.<packageName>
but I can't seem to be able to do that, been trying to use ~/ and
$XDG_CONFIG_HOME but I just end up with everything being installed in
folders called "~" or "DG_CONFIG_HOME"

I need a way of finding the correct user path, I've been reading the
info on this page:
But I can't get my head round that either??

Here's the part of my make file where I specify the destination paths:

# Icon and script go here
DEST1 = $(CURDIR)/debian/gtk-link-lizard/usr/share/gtk-link-lizard-1.4
# Desktop launcher goes here
DEST2 = $(CURDIR)/debian/gtk-link-lizard/usr/share/applications
# Links.txt goes here
DEST3 = $(CURDIR)/debian/gtk-link-lizard/"SOMEHOW I NEED THE
HOME/<USER> PATH HERE??"/.gtk-link-lizard

Thanks again.


On 13 February 2011 21:38, Craig Small <csmall@debian.org> wrote:
> On Sun, Feb 13, 2011 at 06:24:06PM +0000, james frize wrote:
>> I'm looking at installing the links.txt file to
>> ~/.<packagename>/links.txt, but I don't seem to be able to use the
>> ~wildcard.
> Is this in  rules file? If so you cannot do that at all.  It doesn't
> make any sense for a package to install a file in the users home
> directory.
> Generally there is a /etc/<package>/whatever file for defaults and any
> user specific files would be in /usr/share/doc/<package>/examples
> The file in examples should really tell people what to do, e.g.:
> # This is an example file for whatever, you can copy this to
> # ~/.whatever/myfile
> There are many problems with getting a package installer to install
> files in a user's home directory. Perhaps the first one I can think of
> is, "which user's directory?"
>  - Craig
> --
> Craig Small VK2XLZ    http://www.enc.com.au/       csmall at : enc.com.au
> Debian GNU/Linux      http://www.debian.org/       csmall at : debian.org
> GPG fingerprint:       1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5

Reply to: