linuxmint / nemo

File browser for Cinnamon
GNU General Public License v2.0
1.21k stars 300 forks source link

Nemo treats remote ASCII files as binary files and opens them with file-roller #2319

Open mattkjames7 opened 4 years ago

mattkjames7 commented 4 years ago
 * Nemo version 4.4.2
 * windowed nemo
 * Distribution - Linux Mint 19.3 Cinnamon
 * NVIDIA Corporation GP104 [GeForce GTX 1070 Ti], Driver version - 435.21
 * 64 bit

Issue When connected to a remote drive using SSH/SFTP (this may affect other connections too), all files which have an unknown file type, whether they are binary or ASCII, are treated as binary files and are automatically opened using file-roller.

This is quite annoying as there are many ASCII files either with an unrecognised extension, or no extension at all which would automatically be treated as text files locally, but not remotely.

Steps to reproduce

  1. Connect to a remote server using SFTP.
  2. Try to open an ASCII file which has either no extension, or an unknown extension by double-clicking it.

Expected behaviour The expected behaviour I think would be to open the ASCII file with a text editor like it would to the same file stored locally.

Other information A similar bug exists in nemo 4.2.2 in Linux Mint 19.2, where it prompts the user with a message saying that the file is of an unknown files type (marginally less irritating than opening file-roller). https://github.com/linuxmint/nemo/issues/1324

nazar-pc commented 3 months ago

For me text files with .com extensions are treated as binary too.