mirror of
https://github.com/termux/termux-packages.git
synced 2025-05-31 15:12:07 +00:00
- Fixes https://github.com/termux/termux-packages/issues/24817
- Luanti upstream officially migrated to SDL2, but if this build in Termux is switched to SDL2, some problems would happen:
- EGL support would be disabled, which would significantly reduce performance and driver compatibility
- A bug would start happening where the colors of everything would look strangely washed out
- Therefore, because non-SDL2 mode is still working well in this release, it makes more sense to keep `-DUSE_SDL2=0` for now, until the above problems are solved separately.
- `0001-fix-elf-directory-for-cross-compiling.patch` is no longer necessary, because the original problem was an error that happened because of `EXECUTABLE_OUTPUT_PATH` not being set during cross-compilation, now after 0695541bf5
, `EXECUTABLE_OUTPUT_PATH` is always set to something that works in both `TERMUX_ON_DEVICE_BUILD=false` mode and `TERMUX_ON_DEVICE_BUILD=true` mode, so the patch is not necessary anymore.
20 lines
867 B
Diff
20 lines
867 B
Diff
xdg-open, from the package main/termux-tools, does not work on folders.
|
|
xdg-utils-xdg-open, the name of the X11 version of xdg-open from desktopp PC,
|
|
is from x11/xdg-utils and does work on folders.
|
|
This is a folder (~/.minetest) so it's necessary to use the implementation that works on
|
|
folders. It's also inside the /data/data/com.termux/files folder.
|
|
--- a/src/porting.cpp
|
|
+++ b/src/porting.cpp
|
|
@@ -882,8 +882,8 @@ static bool open_uri(const std::string &uri)
|
|
return posix_spawnp(NULL, "open", NULL, NULL, (char**)argv,
|
|
(*_NSGetEnviron())) == 0;
|
|
#else
|
|
- const char *argv[] = {"xdg-open", uri.c_str(), NULL};
|
|
- return posix_spawnp(NULL, "xdg-open", NULL, NULL, (char**)argv, environ) == 0;
|
|
+ const char *argv[] = {"xdg-utils-xdg-open", uri.c_str(), NULL};
|
|
+ return posix_spawnp(NULL, "xdg-utils-xdg-open", NULL, NULL, (char**)argv, environ) == 0;
|
|
#endif
|
|
}
|
|
|
|
|