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++ Library : Other (not classified elsewhere) » Core - App.cpp - GetDataFile
Re: Core - App.cpp - GetDataFile [message #3180 is a reply to message #3178] Wed, 10 May 2006 07:21 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 13976
Registered: November 2005
Ultimate Member
3togo wrote on Tue, 09 May 2006 22:27

Below is a directory listing of /usr/local/bin. You could find that most of the programs nowaday like crossover, quake and etc place a symbolic link in /usr/local/bin only while keeping the data files within the same folder with their "exe" programs.

Therefore, GetExeDirFile would be a good idea even in linux and is not against current linux conventions.

3togo


[root@localhost Desktop]# cd /usr/local/bin
[root@localhost bin]# ls -l
total 11416
-rwxr-xr-x 1 root root 4072346 Apr 21 03:04 dboxfe*
lrwxrwxrwx 1 root root 35 Apr 17 03:21 et -> /usr/local/games/enemy-territ ory/et*
-rwxr-xr-x 1 root root 402 Apr 28 13:04 et~*
lrwxrwxrwx 1 root root 38 Apr 17 03:21 etded -> /usr/local/games/enemy-ter ritory/etded*
-rwxr-xr-x 1 root root 109686 Apr 28 13:00 etswitch*
lrwxrwxrwx 1 root root 29 Apr 30 11:33 findwine -> /usr/local/winetools/fi ndwine*
-rwxr-xr-x 1 root root 241 Apr 28 17:11 jmware*
-rwxr-xr-x 1 root root 241 Apr 27 03:57 jmware~*
-rwxr-xr-x 1 root root 52 Apr 28 23:35 jupdate*
-rwxr-xr-x 1 root root 339276 May 10 10:11 mj*
-rwxr-xr-x 1 root root 69 Apr 17 03:27 ossfix*
lrwxrwxrwx 1 root root 30 Apr 28 08:22 quake4 -> /usr/local/games/quake4/q uake4
lrwxrwxrwx 1 root root 40 Apr 28 08:22 quake4-dedicated -> /usr/local/game s/quake4/quake4-dedicated
-rwxr-xr-x 1 root root 7117860 May 4 18:53 theide*
lrwxrwxrwx 1 root root 28 Apr 30 11:33 winetools -> /usr/local/winetools/w t0.9jo*
lrwxrwxrwx 1 root root 28 Apr 30 11:33 wt -> /usr/local/winetools/wt0.9jo*
[root@localhost bin]#




Thanks Wink

Well, then the only problem is implementation - that really is quite complex in Linux AFAIK (I am afraid you have to duplicate the PATH searching process and follow that link....)

Mirek
 
Read Message icon13.gif
Read Message
Read Message
Read Message
Read Message
Previous Topic: TrayIcon for linux
Next Topic: how to listnen to File System Events?
Goto Forum:
  


Current Time: Fri May 10 16:00:04 CEST 2024

Total time taken to generate the page: 0.02346 seconds