这是indexloc提供的服务,不要输入任何密码
Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -127,18 +127,6 @@
<data android:mimeType="text/*" />
<data android:mimeType="video/*" />
</intent-filter>
<!-- Accept multiple file types to let Termux be usable as generic file viewer. -->
<intent-filter tools:ignore="AppLinkUrlError">
<action android:name="android.intent.action.VIEW" />

<category android:name="android.intent.category.DEFAULT" />

<data android:mimeType="application/*" />
<data android:mimeType="audio/*" />
<data android:mimeType="image/*" />
<data android:mimeType="text/*" />
<data android:mimeType="video/*" />
</intent-filter>
</activity>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down