I am trying to set up file associations in FileZilla 3.38.1 on Ubuntu 18.04.1 LTS.
If I double-click on eg. test.php
in Files it will open in gedit.
So in FileZilla > edit > settings > Filetype
Associations I tick the "Inherit system's filetype associations" (there is nothing else defined in there) and right click > Open a LOCAL test.php
it asks me if I want to open it with "Text Editor", "LibreOffice Writer" or "Atom" and opening with those works. I would expect it to just open with the default editor, gedit.
If I right-click > View/Edit on a remote test.php
I get an error-
"An assertion failed. ./src/common/filefn.cpp(1610): assert "!szFile.empty()" failed in wxFindFileInPath(): empty file name in wxFindFileInPath" and whichever button I choose, "Stop" or "Continue" FileZilla crashes. I would expect FileZilla to download a temp local copy of the file and open it in gedit.
Also if I right-click > Edit on a LOCAL test.php
I get the same error/crash.
So, I try to set up gedit as the default editor in FileZilla Filetype Associations.
First, I type into the Terminal which gedit
and the response is: /usr/bin/gedit
If I type /usr/bin/gedit
in the terminal gedit starts.
So in filezilla I try - php "/usr/bin/gedit" (also tried without quotes)
FileZilla tells me "Associated Program not found".
In local file window in FileZilla, if I go to /usr/bin I cannot see a gedit file or folder, yet I can see it in Files or via "ls" in terminal.
Why can't Filezilla see gedit?