How would I go about removing hard-coded paths from a project?
by ziprun from LinuxQuestions.org on (#59G2N)
In this project (CDE or Common Desktop Environment) a major obstacle is removing all hard-coded paths from config and source files.
https://sourceforge.net/p/cdesktopenv/tickets/60/
I used grep to find any references to the three paths and I think it found most if not all of them, but how would one go about removing the direct hard-coded paths and replacing them? I'm attaching the results grep found and this looks like it isn't too complicated, but I could use a bit of help with this.
Attached Files


https://sourceforge.net/p/cdesktopenv/tickets/60/
I used grep to find any references to the three paths and I think it found most if not all of them, but how would one go about removing the direct hard-coded paths and replacing them? I'm attaching the results grep found and this looks like it isn't too complicated, but I could use a bit of help with this.
Attached Files
![]() | hardcodedpaths-allofthem.txt (37.1 KB) |