-
-
Notifications
You must be signed in to change notification settings - Fork 442
Let Termux:X11 run without sharedUserId="com.termux" #31
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
Conversation
|
@xeffyr Hi. Can we make a new package for apt repos or we should test it longer? |
creepy-pasta101
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pay attention. After compiling you should copy $repo/starter/build/intermediates/stripped_native_libs/debug/out/lib/$TARGET_ARCH/libstarter.so (or extract from apk (lib/$TARGET_ARCH/libstarter.so)) to $TERMUX_PREFIX/libexec/termux-x11/libstarter.so. Also you should put $repo/starter/build/outputs/apk/debug/starter-debug.apk to $TERMUX_PREFIX/libexec/termux-x11/starter.apk
Abou that... I suggest using termux's own RUN_COMMAND intent
It should be done just one time after package installation. Do you think I should install it using |
Then I guess adding it to |
|
|
|
Also I forgot to complete a code which starts Xwayland in the end. Maybe we will make something like starting XFCE/other DE session after Xwayland. That will allow us to send |
|
@suhan-paradkar do you think an app should check API version used in |
|
I guess better would be to add a logger to the app and also bump the version of |
|
That can be a bit problematic. I mean mechanism of extracting logs. Maybe I can add extra argument for extracting log of previous run. I think I will do that after cleaning up the code and separation debug/verbose and release logging mode. |
|
There is a problem. When JNI code tries to use |
creepy-pasta101
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So far so good
Make Termux:X11 start user-defined commands in Termux ($PREFIX/libexec/termux-x11/termux-startx11) Make debug_build.yml build companion package for termux and upload it as an artifact. Update README.md
|
I think it is ready to be merged. |
|
I checked your Artifact on one of my devices but not studied your descriptions above (do it tomorrow), and made comparison:
|
|
Ok now it works after uninstalling and reinstalling the app. felt dumb |
|
the |
@wmcb-tech My experiance! Where dit you find |
Fixed
It is present in companion package. Now installation is fixed.
It is better because it can be used with any version of termux, even signed with another key. There are not many people who rebuilds/resigns their application in order to guarantee compatibility. |
|
@wmcb-tech Does it work well? Do you think it can be merged? |
I just moved to F-droid version of Termux for testing and it seems it does work fine (although additional steps need to be done like permission granting and setting i think it's ready to merge as it's works flawlessly not having to use debug builds of Termux |
It is impossible to override it. And it is needed only to start
I prefer not to do that automatically because it can impact termux-app's security. Ok. I am merging it. |
Solves #21
Pay attention. After compiling you should copy
$repo/starter/build/intermediates/stripped_native_libs/debug/out/lib/$TARGET_ARCH/libstarter.so(or extract from apk (lib/$TARGET_ARCH/libstarter.so)) to$TERMUX_PREFIX/libexec/termux-x11/libstarter.so. Also you should put$repo/starter/build/outputs/apk/debug/starter-debug.apkto$TERMUX_PREFIX/libexec/termux-x11/starter.apkI think we can use this build.sh as a reference.
P.S. Almost forgot $repo/termux-x11 script. It should be copied to $TERMUX_PREFIX/bin/
build.gradlechanging to prevent downgrading gradle plugin.$XDG_RUNTIME_DIRin sources. Replace with checking if it is set in environment and export default value if it is not exported.Xwaylandif/when connection is established.RUN_COMMANDintent if an app was started from launcher, not from commandline.fdof logfile next to socket'sfdand write output of logcat (logcat started in an app can extract logs of the app and apps with the sameandroid:sharedUserId).termux.propertiesfile. Usingfdsending or throughTermux'sContentProvider