这是indexloc提供的服务,不要输入任何密码
Skip to content

fix(x11/icewm): set $TERMUX_PREFIX throughout the software #25466

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robertkirkman
Copy link
Contributor

@robertkirkman robertkirkman commented Jul 26, 2025

  • termux-exec should handle the path replacement for most of these, but patch all of them just in case

  • I checked, and there is no string /usr or /etc in the code of IceWM that is not representing a UNIX-like system resources folder path or et cetera path respectively that can be safely and correctly replaced with $TERMUX_PREFIX, therefore this global replacement is safe

    • (Note: this software does attempt to use some features/files that do not exist in Termux/Android, like (PREFIX)/etc/shells and (PREFIX)/etc/passwd. I tried for a little while to implement those features over termux-tools [shells implementation] / termux-auth [passwd implementation], but I wasn't able to do that yet. As far as I can tell, if these features are not available, they just don't do anything and everything else in IceWM works normally)
  • This is a rewrite of the patch that was lost in icewm: moved to main termux-user-repository/tur#1876, because unfortunately, I did not realize until too late that an older version of IceWM was already present in the TUR. I don't want to cause the loss of any fixes that correctly replacing /usr with $TERMUX_PREFIX globally in IceWM might have had.

@robertkirkman robertkirkman force-pushed the icewm-prepend-prefix branch 2 times, most recently from 93b3922 to a13e1bc Compare July 26, 2025 11:27
- `termux-exec` should handle the path replacement for most of these, but patch all of them just in case

- I checked, and there is no string `/usr` or `/etc` in the code of IceWM that is not representing a UNIX-like system resources folder path or et cetera path respectively that can be safely and correctly replaced with `$TERMUX_PREFIX`, therefore this global replacement is safe

- This is a rewrite of the patch that was lost in termux-user-repository/tur#1876, because unfortunately, I did not realize until too late that an older version of IceWM was already present in the TUR. I don't want to cause the loss of any fixes that correctly replacing `/usr` with `$TERMUX_PREFIX` globally in IceWM might have had.
@robertkirkman robertkirkman force-pushed the icewm-prepend-prefix branch from a13e1bc to 60bc2e5 Compare July 26, 2025 11:50
@robertkirkman
Copy link
Contributor Author

@IntinteDAO

Since you created the original version of this patch for IceWM, if it's not too inconvenient for you, I would be very interested to know if you think this way of writing the patch is OK, or if you know of any problem this causes that your version doesn't have. Don't rush to test this if you are busy, there is no hurry for it!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant