mirror of
https://github.com/yuzu-emu/AppImageKit-checkrt.git
synced 2025-07-08 10:40:33 +00:00
Update AppRun.c.patch
This commit is contained in:
parent
b1c6ee2544
commit
487adc410b
|
@ -1,6 +1,6 @@
|
||||||
--- a/AppRun.c
|
--- a/AppRun.c
|
||||||
+++ b/AppRun.c
|
+++ b/AppRun.c
|
||||||
@@ -44,6 +44,8 @@ THE SOFTWARE.
|
@@ -44,6 +44,8 @@
|
||||||
|
|
||||||
#define LINE_SIZE 255
|
#define LINE_SIZE 255
|
||||||
|
|
||||||
|
@ -9,15 +9,15 @@
|
||||||
int filter(const struct dirent *dir) {
|
int filter(const struct dirent *dir) {
|
||||||
char *p = (char*) &dir->d_name;
|
char *p = (char*) &dir->d_name;
|
||||||
p = strrchr(p, '.');
|
p = strrchr(p, '.');
|
||||||
@@ -156,6 +158,7 @@ int main(int argc, char *argv[]) {
|
@@ -156,6 +158,7 @@
|
||||||
char *old_env;
|
char *old_env;
|
||||||
const LENGTH = 2047;
|
const int LENGTH = 2047;
|
||||||
char new_env[8][LENGTH+1];
|
char new_env[8][LENGTH+1];
|
||||||
+ char *optional = checkrt(usr_in_appdir);
|
+ char *optional = checkrt(usr_in_appdir);
|
||||||
|
|
||||||
/* https://docs.python.org/2/using/cmdline.html#envvar-PYTHONHOME */
|
/* https://docs.python.org/2/using/cmdline.html#envvar-PYTHONHOME */
|
||||||
snprintf(new_env[0], LENGTH, "PYTHONHOME=%s/usr/", appdir);
|
snprintf(new_env[0], LENGTH, "PYTHONHOME=%s/usr/", appdir);
|
||||||
@@ -165,7 +168,7 @@ int main(int argc, char *argv[]) {
|
@@ -164,7 +167,7 @@
|
||||||
snprintf(new_env[1], LENGTH, "PATH=%s/usr/bin/:%s/usr/sbin/:%s/usr/games/:%s/bin/:%s/sbin/:%s", appdir, appdir, appdir, appdir, appdir, old_env);
|
snprintf(new_env[1], LENGTH, "PATH=%s/usr/bin/:%s/usr/sbin/:%s/usr/games/:%s/bin/:%s/sbin/:%s", appdir, appdir, appdir, appdir, appdir, old_env);
|
||||||
|
|
||||||
old_env = getenv("LD_LIBRARY_PATH") ?: "";
|
old_env = getenv("LD_LIBRARY_PATH") ?: "";
|
||||||
|
|
Loading…
Reference in a new issue