| 285 | | private static String GetExePath() |
| 286 | | { |
| 287 | | |
| 288 | | String sUserhome = System.getProperty("user.home"); |
| 289 | | |
| 290 | | String[] paths = { "/Users/jimnorman//dev/digitalme/ui/cocoa/xcode/selector/build/Release/DigitalMe.app/Contents/MacOS/DigitalMe", |
| 291 | | "/usr/local/lib/digitalme/bin/digitalme", |
| 292 | | "/usr/lib/digitalme/bin/digitalme", |
| 293 | | sUserhome + "/Desktop/DigitalMe.app.Contents/MacOS/DigitalMe", |
| 294 | | "/Applications/DigitalMe.app/Contents/MacOS/DigitalMe", |
| 295 | | "/Applications/Utilities/DigitalMe.app/Contents/MacOS", |
| 296 | | sUserhome + "/dev/digitalme/ui/cocoa/xcode/selector/build/Release/DigitalMe.app/Contents/MacOS/DigitalMe" }; |
| 297 | | |
| 298 | | for (int i=0; i<paths.length; i++) |
| 299 | | { |
| 300 | | java.io.File fFile = new java.io.File(paths[i]); |
| 301 | | if (fFile.exists()) |
| 302 | | { |
| 303 | | return paths[i]; |
| 304 | | } |
| 305 | | } |
| 306 | | |
| 307 | | return null; |
| 308 | | } |
| | 278 | private static String getExePath() |
| | 279 | { |
| | 280 | |
| | 281 | String sUserhome = System.getProperty("user.home"); |
| | 282 | |
| | 283 | String[] paths = {"/usr/local/lib/digitalme/bin/digitalme", |
| | 284 | "/usr/lib/digitalme/bin/digitalme", |
| | 285 | sUserhome + "/Desktop/DigitalMe.app/Contents/MacOS/DigitalMe", |
| | 286 | "/Applications/DigitalMe.app/Contents/MacOS/DigitalMe", |
| | 287 | "/Applications/Utilities/DigitalMe.app/Contents/MacOS"}; |
| | 288 | |
| | 289 | for (int i=0; i<paths.length; i++) |
| | 290 | { |
| | 291 | java.io.File fFile = new java.io.File(paths[i]); |
| | 292 | if (fFile.exists()) |
| | 293 | { |
| | 294 | return paths[i]; |
| | 295 | } |
| | 296 | } |
| | 297 | |
| | 298 | return null; |
| | 299 | } |