Re: installing an end user editable file

2011-02-15 Thread james frize
Hey Boyd, With regards to: Perhaps you are installing your template with permissions that are too restrictive You're totally right! This was causing my script to fail, thanks very much for pointing it out, everything is working perfectly now :) Now I've familiarized myself with the wiki on chmod

Re: Re: installing an end user editable file

2011-02-14 Thread james frize
Hey mentors, Firstly, thanks for all the help so far. I like the idea of having a default copy of the file used by my program, as suggested by Lars and PJ, so I've altered my source code to use a default file and allow multiple users to have their own copies of this file in their

Re: Re: installing an end user editable file

2011-02-14 Thread Pietro Battiston
Il giorno lun, 14/02/2011 alle 19.38 +, james frize ha scritto: Hey mentors, Firstly, thanks for all the help so far. I like the idea of having a default copy of the file used by my program, as suggested by Lars and PJ, so I've altered my source code to use a default file and allow

Re: Re: installing an end user editable file

2011-02-14 Thread Lars Buitinck
2011/2/14 james frize jamesfr...@gmail.com: Hey mentors, I'm not a mentor, I just lurk on this list to learn. I like the idea of having a default copy of the file used by my program, as suggested by Lars and PJ, so I've altered my source code to use a default file and allow multiple users

Re: Re: installing an end user editable file

2011-02-14 Thread james frize
Thanks very much Lars, That's massively helpful, it clarifies a lot of stuff, I reckon I should be able to get this package working properly now, phew! - I knew making your first Debian package had a reputation for taking a few attempts, but I wasn't quite ready for this! Regards. Jim. On 14

Re: installing an end user editable file

2011-02-14 Thread Kris Deugau
james frize wrote: However, I can't open a file from /usr/share via my python script as I don't have permission to open files in a protected directory print loading links.txt from usr/share/doc/gtk-link-lizard... try: self.text_file =

Re: installing an end user editable file

2011-02-14 Thread Boyd Stephen Smith Jr.
On Monday 14 February 2011 13:38:13 james frize wrote: However, I can't open a file from /usr/share via my python script That's wrong. Most of /usr/share should be world-readable. Perhaps you are installing your template with permissions that are too restrictive. I believe /usr/share files

Re: installing an end user editable file

2011-02-14 Thread james frize
Check your filesystem paths carefully; unless I totally misunderstand some bizarre aspect of Python syntax, you're trying to open usr/share/doc/gtk-link-lizard/links.txt relative to whatever the code thinks the current directory is, not the absolute path /usr/share/doc/gtk-link-lizard/links.txt.

Re: installing an end user editable file

2011-02-14 Thread Ben Finney
Kris Deugau kdeu...@vianet.ca writes: james frize wrote: However, I can't open a file from /usr/share via my python script as I don't have permission to open files in a protected directory print loading links.txt from usr/share/doc/gtk-link-lizard... try:

RE: installing an end user editable file

2011-02-13 Thread james frize
Hi, Got my Debian packages almost fully working now, everything installs/uninstalls without error. However, when I try to run the newly installed program it wont work properly as it lacks permission to save to file. My program loads a list of hyperlinks from a text file (links.txt), this text

Re: installing an end user editable file

2011-02-13 Thread Lars Buitinck
2011/2/13 james frize jamesfr...@gmail.com: Got my Debian packages almost fully working now, everything installs/uninstalls without error. However, when I try to run the newly installed program it wont work properly as it lacks permission to save to file. My program loads a list of

Re: installing an end user editable file

2011-02-13 Thread Julian Taylor
On Sun, 2011-02-13 at 17:11 +0100, Lars Buitinck wrote: [...] I don't think /home/user/Documents is a good place for this; prefer ~/.packagename/links.txt instead. You'll probably have to patch up the source code. [...] shouldn't $XDG_CONFIG_HOME (or $HOME/.config if not set) or

Re: installing an end user editable file

2011-02-13 Thread Lars Buitinck
2011/2/13 Julian Taylor jtaylor.deb...@googlemail.com: On Sun, 2011-02-13 at 17:11 +0100, Lars Buitinck wrote: [...] I don't think /home/user/Documents is a good place for this; prefer ~/.packagename/links.txt instead. You'll probably have to patch up the source code. [...] shouldn't

Re: Re: installing an end user editable file

2011-02-13 Thread james frize
Cheers Lars, 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. Using this line in my makefile: DEST3 = $(CURDIR)/debian/gtk-link-lizard/~/.gtk-link-lizard It just creates a directory called ~ on the destination drive? It

Re: Re: installing an end user editable file

2011-02-13 Thread Craig Small
On Sun, Feb 13, 2011 at 06:24:06PM +, 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

Re: Re: installing an end user editable file

2011-02-13 Thread james frize
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

Re: Re: installing an end user editable file

2011-02-13 Thread james frize
Sorry forgot to clarify, yeah it's in my rules makefile. On 13 February 2011 21:55, james frize jamesfr...@gmail.com wrote: 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

Re: Re: installing an end user editable file

2011-02-13 Thread PJ Weisberg
On 2/13/11, Craig Small csm...@debian.org wrote: On Sun, Feb 13, 2011 at 06:24:06PM +, 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.

Re: installing an end user editable file

2011-02-13 Thread Boyd Stephen Smith Jr.
In AANLkTikBeVcyM4H=0d3-xfu4pnihq9qkczp7mlae3...@mail.gmail.com, james frize wrote: 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

Re: installing an end user editable file

2011-02-13 Thread james frize
Cheers PJ and Boyd, To be honest I never thought about having multiple users, just learning about the packaging process and I'm experimenting with what I can do. But I guess it's a much better idea to have a template and a copy for each user, will have to add it to the source. Thanks for the