Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Opening txt files from "Recent changes" view does not work

See original GitHub issue

Description of the issue

Tapping on an item from “Recent changes” view is expected to open corresponding file in relevant app. But this almost does not work for txt files. Most of the apps can not recognize sent intent. For instance can not open files from such intents.

I’ve tried to compare intents that sends Syncthing-Fork with intents of file managers that properly opens text files in all available text editors.


Data: /storage/emulated/0/Notes/todo.txt#Intent;type=text/plain;launchFlags=0x3000001;component=io.github.muntashirakon.AppManager/.intercept.ActivityInterceptor;end URI: /storage/emulated/0/Notes/todo.txt#Intent;type=text/plain;launchFlags=0x3000001;component=io.github.muntashirakon.AppManager/.intercept.ActivityInterceptor;end

Another app:

Data: content:// URI: intent://;scheme=content;type=text/plain;launchFlags=0x3000001;S.real_file_path_2=%2Fstorage%2Femulated%2F0%2FNotes%2Ftodo.txt;end

There is conspicuous difference. I am not familiar with Android ways but it seems to me that Data and URI most likely should not be identical.

Reproduction Steps

See above.

Version Information

  • App Version:
  • Syncthing Version: v1.16.0
  • Android Version: Android x.y
  • Device manufacturer: Xiaomi
  • Device model: Mi A1

Device platform info

Not collected, I believe irrelevant

Android Log

Not collected, I believe irrelevant

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:15 (12 by maintainers)

github_iconTop GitHub Comments

Self-Perfectioncommented, Jul 16, 2021

I’ve tested F-Droid build v 1.18.0 and txt files opens as expected.

Thank you!

Catfriend1commented, Jul 16, 2021

Cool, thanks for the follow up 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to open .txt files. - Microsoft Community
Go to Control Panel > All Control Panel Items > Default Programs > Associate a file type or protocol with a program ....
Read more >
How to Open, View, and Edit the Contents of a File on a ...
Steps on how you can edit, open, and view the contents of any file on a computer.
Read more >
Opening files and reading from files
Here's a surefire fix: make sure the file actually exists. Now manually create the file on your Desktop, using Sublime Text 3 or...
Read more >
CLion C++ can't read/open .txt file in project directory
Clion looks for input files and writes output files to the Debug folder. If you put your input files in there it will...
Read more >
How to View Recent Files in Windows 10 - YouTube
Because it's easy to misplace a file in Windows 10, File Explorer keeps track of recent files so that you can find them...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found