Dne pondělí 03 červenec 2006 20:52 Felipe Monteiro de Carvalho napsal(a):
> On 7/3/06, Felipe Monteiro de Carvalho
> <[EMAIL PROTECTED]> wrote:
> > On 7/3/06, Petr Hlozek <[EMAIL PROTECTED]> wrote:
> > > I'm developing Linux application and I need install some share data.
> > > How should I work with these data in program? Can I use direct path to
> > > data (/usr/share/myapp/data)?
> This is becoming a common question, so I wrote a solution on the Wiki:
> http://wiki.lazarus.freepascal.org/index.php/Multiplatform_Programming_Guid
>e#Storing_data_files_for_your_applications
Thanks for solution. Now I can create data in right place in /home/user_name.
But there is still problem with share data. I don't really know where they
are. They can be in /usr/local/share, /usr/share, /opt/usr/share/ etc. User
can put data into his home directory eg. ~/myapp/usr/share/data. After
program is running I have to copy data from share directory to his
~/myapp/data.
If you use ./configure prefix=~/test_app then make; make install application
executable is in ~/tmp_app/test_app/usr/bin/test_app. After running program,
it copy share data from ~/tmp_app/test_app/usr/share/test_app to ~/test_app.
How can I do that?
Thanks for help!
Petr
--
Fedora Core 5, KDE 3.5.1, KDevelop 3.3.1
web : www.ok2cqr.com
mail : ok2cqr at ok2cqr dot com; petr_hl at mrp dot cz
ICQ : 165536992
AOL : PetrHH
Skype : PetrHH
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives