Howdy,
I'm still pretty much a novice programmer, but I've been a linux user for
a while now. Typically you can get relevant distro information by looking
inside /proc/version .
User level apps shouldn't really care too much about the distro, depending
more on any external dependencies you might happen to require. Something
that is more system level, like a multi-user network service, might
benefit from certain elements that are specific to the distro. For
instance, Ubuntu takes a rather OS X approach, and instead of a root user
everything above normal user permissions relies on sudo.
As for preferences, if it's going to be something on the user level, I'd
imagine you'd want to go with a dot file (or directory) in the user's home
directory. Say your application is called MallWalker, you could create a
preference file in the home directory of that user called .mallwalkin, or
a directory by that name if you need more complexity. By using a dot, the
file or directory isn't shown when you use a simple ls command, keeping
the clutter down.
Note that the current user's home dir can be represented on the command
line as "~/" . This allows your app, or script, to not need to know the
username.

Good luck,
Fargo

> G'Day!
>
> I am investigating a Linux version of one of my applications, but I
> have not really had that much experience with Linux (I have an Ubuntu
> LiveCD which runs ok on my Intel iMac). So for Linux apps:
> - where do I store my Preferences?
> - is there anyway to retrieve which flavour and type of Linux my app
> is running on (I already get this info for Macs e.g MacOS X 10.4.8)
> - how are they delivered, will a zip file be ok or do I need some
> linux specific installer?
> - are keyboard accelerators commonly used in Linux (like in Windows)
>
> cya
> Ben
> _______________________________________________
> Unsubscribe or switch delivery mode:
> <http://www.realsoftware.com/support/listmanager/>
>
> Search the archives of this list here:
> <http://support.realsoftware.com/listarchives/lists.html>
>
>
>

_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to