Lazy-Newb-Pack / Lazy-Newb-Pack-Linux

A Lazy Newb Pack for Linux
http://lazynewbpack.com/
150 stars 12 forks source link

Allow running script from any directory #28

Closed txtsd closed 1 year ago

txtsd commented 8 years ago

distro_fixes.sh would not find the Dwarf_Fortress executable if run from any folder other than the one in which the df and dfhack script and distro_fixes.sh was located in. Only ./df and ./dfhack would make it work. With this you can run df and dfhack from any folder level eg: ../../dfhack or herp/derp/df

lethosor commented 8 years ago

I can't see why DF_DIR wouldn't be pointing to the actual DF directory - it's defined in df and dfhack, which definitely use it to locate libraries properly.

txtsd commented 1 year ago

Should I close this? It's been open for years now :sweat_smile:

txtsd commented 1 year ago

Didn't realize there was no activity on this repo for years

lethosor commented 1 year ago

https://dwarffortresswiki.org/index.php/Utility:Lazy_Newb_Pack has a couple newer maintained packs. For what it's worth, I still don't understand why this change was needed, hence my comment above, and further investigation might have helped get it merged.

txtsd commented 1 year ago

Thanks for the link and info.

Like the OP says though, I was trying to run df and dfhack from different directories for whatever reason at the time. And it only worked as intended after I made this change. In retrospect, I should've attached the error message. I had only been using Linux full-time for a year when I made this PR, so my Linux-fu in general must've been weak if it works as intended without my change.