Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » GetExeFilePath() in Linux
Re: GetExeFilePath() in Linux [message #6393 is a reply to message #6388] Fri, 10 November 2006 12:17 Go to previous messageGo to previous message
zsolt is currently offline  zsolt
Messages: 698
Registered: December 2005
Location: Budapest, Hungary
Contributor
Quote:

But if you don't have write privileges on your application path, you also cannot store any files there.

I have a directory structure like this:

bin/appname - this is the binary
share/appname/ - this is a directory for document and configuration templates and other readonly resources

I have a lot of document and configuration templates and the application wants to READ them. I don't want to compile them into the app because they are extensible by installing additional packages.
I can write into the documentation, that resources have to be in e.g. /usr/local/share/appname/ directory, but it is not very admin friendly. It is much better to get these resources with the next algorithm:
GetFileFolder(GetExeFilePath()) + "/../share/" + appname + "/something.resource"
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Double formatting bug?
Next Topic: How to catch keyboard input?
Goto Forum:
  


Current Time: Mon Jun 03 05:53:50 CEST 2024

Total time taken to generate the page: 0.02649 seconds