On Tue, Jun 03, 2003 at 08:57:46PM +0200, adrian15 wrote:
> Hello I am thinking about a new Gnu/Win/Linux distribution called
> Promise Linux (Details in:
> http://hispascal.sourceforge.net/phpwiki-1.3.3/index.php/Adrian15HaltPromiLinuxEN)
> 
> 1)One of my questions is if there would be any way of installing
> TuxPaint in both Windows and Linux without having to copy the compiled
> libraries twice in the cdrom.
> 
> For installing a program you usually need an installer (which may be a
> linux one or a windows one) and the libraries associated to the program.
> Are these libraries valid in both Windows and Linux? So that I can save
> space on my cdrom.

The libraries used by Tux Paint are built for the particular
architecture and OS in question.

So I guess the answer is no.  You can't really use the Windows DLLs for
SDL on Linux.  You can't use the Linux Shared-Object files for "libintl"
under Windows.  :^)


> 2) I want to automatize TuxPaint Windows installation, such as editing a
> config file or passing arguments to its installer. Could you please
> explain me it a little bit or give some manual url or whatever?

That's not my department. ;^)  Hopefully John Popplewell, who's been doing
the Windows builds and putting together the installer (NSI, I believe),
will answer this. :^)


> 3) Is there any way of installing TuxPaint in Windows but running a
> Linux installer?... Or at least using wine or whatever. I mean not
> running an exe file but running a Linux script or whatsoever.

The core of what gets 'installed' in Tux Paint (other than the program file
itself) is the data files -- images, sounds, translation files, etc.
(And of course, in Windows, the SDL and other DLLs...)

_Where_ they get installed differ on each operating system.

I suppose creating a Linux shell script or MSDOS batch file to copy the
files to the appropriate place would work fine.

It sounds like you might want to be looking at the source of Tux Paint
moreso than the Windows installer build.  Or maybe, I guess, just the
plain non-installer-version of the Windows build.  (The "ZIP Archive"
versions on the downloads page.)


> 4) In my project Promise Linux one of the objectives is that Windows
> TuxPaint Configuration and Linux TuxPaint Configuration should be the
> same.
> 
> The idea is one partition for windows, another for linux and another one
> (fat32) for shared configuration. So that I install TuxPaint in Windows
> and I install TuxPaint in Linux and I want both of them to share its
> configuration.

That should actually work fine.  Of course, under Linux, you can just
have the installation procedure create symbolic links to the data files.

e.g., "/usr/local/share/tuxpaint/" could be a pointer to
"/mnt/sharedfat/XXX/YYY/ZZZ/tuxpaint/".

*shrug*


> 4.1)The question is: Does TuxPaint store its configuration in
> 
>     4.1.a) a single file?

The system-wide config is /usr/local/etc/tuxpaint/tuxpaint.conf by default.
Another reasonable place for it would be simply /etc/tuxpaint/tuxpaint.conf
or /etc/tuxpaint.conf

The user-specific config, under Linux, is ~/.tuxpaintrc


Under Windows, the file is "tuxpaint.cfg" in, I guess, the Tux Paint folder.


> 4.1.b) a single folder?

I guess here you're talking about the data files, not the configuration file.

There are two kinds of data files:  the program data files (sounds, images,
translations, fonts), and the user data files (saved images, thumbnails).


Under Linux, the default place for the _program_ data files is
/usr/local/share/tuxpaint/.

(e.g., fonts are in /usr/local/share/tuxpaint/fonts/)

The default place for _user_ data files ('saved' files) is within the
directory ~/.tuxpaint/



Under Windows, it's simply a "data" subfolder for the program files.
The user data files is "userdata" subfolder.


>     4.2) Do I have to edit some TuxPaint files (both in Linux and
> windows) in order to let it know where the new configuration file/folder
> is located.
> 
>     (Of course I am supposing using the same TuxPaint version in both
> Windows and Linux)

The easiest thing to do, again, is probably to just use symbolic links on
the Linux side of things.

You might also want to look at the man page or "--help" output or README
for Tux Paint, as there are some useful command-line options in there, like:

  --savedir
  --printcfg
  --nosysconfig


> Thank you for your patience and your time. Thank you.

Good luck!  Let us know if you have more questions! :)

-bill!

-- 
[EMAIL PROTECTED]                                            Hire me!
http://newbreedsoftware.com/bill/    http://newbreedsoftware.com/bill/resume/
_______________________________________________
Tuxpaint-dev mailing list
[EMAIL PROTECTED]
http://tux4kids.net/mailman/listinfo/tuxpaint-dev

Reply via email to