How to find gedit filepath location?

I have gedit and it's fine. It works as I need. It is my goto text editor (sidenote: for some reason NotePad++ works but takes a few minutes before it presents any GUI and appears ready for use)

But, in some programs (underline SOME) the program (in this case FileZilla) asks me for a filepath to the app rather than presenting a pre-filled list, see screenshot below:

Now, FileZilla is great, and the "edit" on a "local" file works fantastically, but that means I have to download the remote file to then "edit" it to open it, in Gedit.

Whereas, with remote files I can open them remotely without downloading them (I mean, it gets put in a temp location, but you know what I mean!), but I can't do this without seamingly needing to highlight where the gedit program is located.

In which package format is gedit installed (Zorin package, flatpak, snap)? In the software center search for gedit and on the right side of the package you can see the package format. (The one with a :check_mark:)

Is it installled for user or systemwide?

Hello
It is a ZorinOS APT package.

Sorry, I'm not at the computer at the moment. Does it work with
/usr/bin/gedit

I'm not sure if you need the .desktop file or the binary file

The .desktop file would be at
/usr/share/applications/gedit
or
~/.local/share/applications/gedit

Thanks.

The /usr/bin/gedit doesn't exist and nor does the /usr/share/applications folder.

There are various things within /share/ but none named like gedit.

Press ctrl+h to show the hidden files.
First click on "Other locations" and select file system to go to root directory.
You are in home directory now.

The path /usr/bin/gedit is correct.
Both of these locations exist.

I believe that you are looking in Home directory at the moment, not in Root.

To view root, in the File Manager, look to the left and where you see "Other Location", in the left pane, select that. Select your computer drive in the right pane.
This will take you to Root where you can see these folders.

Oh OK I got it, the files are there (in Nautilus), but Filezilla isn't permitted to see them (in the popup selection window as in screenshot above).

I can't see how to run FileZilla with all privileges via the GUI/Icon;

The exec that runs Filezilla is:

Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=filezilla --file-forwarding org.filezillaproject.Filezilla @@u %u @@

FileZilla is installed as Flatpak, perhaps I can install it as Zorin OS as well/instead and this could help?

That... would do it, yes.

Flatpak's are a lot more restricted about being able to see the system. You don't want duplicate software, so the best choice is to remove the flatpak version, first. Then select the Zorin APT supplied package to install.

1 Like

This Works. Replacing the FileZilla from Flatpak to ZorinOS makes it use the default editor for editing remote files (gedit) .

Thank you both!!

1 Like

I have just found, there is a bug in the version of Filezilla being used in the ZorinOS distribution (version 3.43.6) and it fails to correctly authenticate some keys with SSH.

This was why I was using the Flatpak version (3.69.5).

:-/

Hmmm... looking into that, I found:

"Fix:Temporarily move unused keys out of ~/.ssh/ or use the command env SSH_AUTH_SOCK=null filezilla to force it to ignore the system agent and only use keys specified in its own settings."

You could download it from the Developers Website. There You get a newer Version.