diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml
index ca1b1e9941..84d10ead32 100644
--- a/app/src/main/AndroidManifest.xml
+++ b/app/src/main/AndroidManifest.xml
@@ -127,18 +127,6 @@
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/src/main/java/com/termux/filepicker/TermuxFileReceiverActivity.java b/app/src/main/java/com/termux/filepicker/TermuxFileReceiverActivity.java
index 019fb4a9d7..eaef15f898 100644
--- a/app/src/main/java/com/termux/filepicker/TermuxFileReceiverActivity.java
+++ b/app/src/main/java/com/termux/filepicker/TermuxFileReceiverActivity.java
@@ -33,9 +33,9 @@
public class TermuxFileReceiverActivity extends AppCompatActivity {
- static final String TERMUX_RECEIVEDIR = TermuxConstants.TERMUX_FILES_DIR_PATH + "/home/downloads";
- static final String EDITOR_PROGRAM = TermuxConstants.TERMUX_HOME_DIR_PATH + "/bin/termux-file-editor";
- static final String URL_OPENER_PROGRAM = TermuxConstants.TERMUX_HOME_DIR_PATH + "/bin/termux-url-opener";
+ static final String TERMUX_RECEIVEDIR = TermuxConstants.TERMUX_HOME_DIR_PATH + "/downloads";
+ static final String EDITOR_PROGRAM = TermuxConstants.TERMUX_BIN_PREFIX_DIR_PATH + "/termux-file-editor";
+ static final String URL_OPENER_PROGRAM = TermuxConstants.TERMUX_BIN_PREFIX_DIR_PATH + "/termux-url-opener";
/**
* If the activity should be finished when the name input dialog is dismissed. This is disabled
@@ -160,7 +160,7 @@ void promptNameAndSave(final InputStream in, final String attachmentFileName) {
final File editorProgramFile = new File(EDITOR_PROGRAM);
if (!editorProgramFile.isFile()) {
- showErrorDialogAndQuit("The following file does not exist:\n$HOME/bin/termux-file-editor\n\n"
+ showErrorDialogAndQuit("The following file does not exist:\n$PREFIX/bin/termux-file-editor\n\n"
+ "Create this file as a script or a symlink - it will be called with the received file as only argument.");
return;
}
@@ -224,7 +224,7 @@ public File saveStreamWithName(InputStream in, String attachmentFileName) {
void handleUrlAndFinish(final String url) {
final File urlOpenerProgramFile = new File(URL_OPENER_PROGRAM);
if (!urlOpenerProgramFile.isFile()) {
- showErrorDialogAndQuit("The following file does not exist:\n$HOME/bin/termux-url-opener\n\n"
+ showErrorDialogAndQuit("The following file does not exist:\n$PREFIX/bin/termux-url-opener\n\n"
+ "Create this file as a script or a symlink - it will be called with the shared URL as the first argument.");
return;
}