I have some times popup boxes telling me no default program is set to handle certain file types. This presents me sometimes with a box of standard choices (eg krita for graphical images) but sometimes no options are present.
How do I find currently installed apps on the Zorin OS file system to associate these file-types to?
Specific use request: I want to have my Filezilla SFTP explorer use the default "text editor" (gedit text editor 3.36.2) to open remote server files, but I can't find that editor program on the local OS..... where is it?
How do I associate these two in the dialog interface which is presented?
You can use apt list -installed to list all installed packages.
You can use a pipe and grep to search for a specific package. For example, if I want to check if Gimp is installed
apt list --installed | grep gimp
Note this this will list only software installed through apt. It will not list other package formats like Snap or Flatpak.
You can use
snap list
or
flatpak list
to see all installed for each of those formats.
You can also search through dpkg
dpkg -l
sudo dpkg -l | grep gimp
To associate a mimetype with a package as default, you can right click on a file of that mimetype, then from the context menu, select "Open With"
Then select the option for that package on the list provided, or select "Other software" and then click on the package from the list. Now, you must click the button for "Set as default" or "use as default" for this file type.
Ok, that's a fine big detailed instruction you've set out. Now how would I then be able to do what you have mentioned using the "browse" button as per the screenshot on my post?
I don't remember specifically, but this is an illustrative example only of various times this dialogue interface comes up on the OS. What I'm looking for is perhaps a folder in the file system containing an exe (yes sorry I come from a Windows OS background) or similar to try to a) use the browse button as given by the interface and b) open the file with the correct app I know is on the system.
On the local drive in Nautilus / file I can open local PHP files in text editor just fine,
On Filezilla local drive files I can open and view these In Text Editor just fine,
However I can't "edit" them; the dialogue interface gives me a file system browser rather than any sort of app listing. This may be a Filezilla specific issue.
The same files that can be opened by Text Editor in the local disk on Filezilla can not be opened in this way for the remote files (as per the screenshot) the only option being the "browse" button as per the screen shot.
I am trying to find what the correct file system command would be using this interface to open a (in this case PHP) file with the default Text Editor.
In Zorin OS, the .deb package would be the equivalent of the .exe package. All apps installed this way are listed and you can use the terminal commands I posted above )quick, efficient) or GUI management to view these. I did not list a GUI method because it actually would probably feel like you were running in circles... When all you wanted was the information in the first place. You could open the Software Store and check the installed software, but not link it to the mimetype.
The GUI Method I outlined using your file manager with Right Click will set the defaults for the mimetypes, however.
Do you have ownership or read/write permissions for the remote drive?
Is the remote drive an external drive, but physically connected to your computer or is it remotely connected over a network (I assume remotely connected due to you listing FileZilla SFTP)?
It is a remote drive with Filezilla having complete root access. Access / permission on the remote drive is not an issue.
I perceive the issue here is that filezilla for better or worse is expecting the filepath to the deb package. I will dig that out and try that, thanks for the pointer in this respect.
You can find the full path (meaning the exact location in the file system) where programs live by running the command which <name_of_command_or_program. For example if you wanted to use VSCodium you would run
which codium
Yes, a bit confusing since the "marketing" name is VSCodium but the installed file is called simply called "codium". Use the commands listed by Aravisian above to find the exact name that you need. In this case, it would return something like /usr/bin/codium which is what I'd enter in there.