-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
only uses xterm when default program has Terminal=true #366
Comments
The rest of this comment is for clarification.
A long time ago, LXQt devs agreed that
Because it has an option for it. Being a separate app, |
i'm not executing the text file, i'm trying to view the text file in my text editor, which happens to run in a terminal. i never said that lxqt-archiver should read the pcmanfm-qt config file either. what way am i supposed to view and edit files in an archive with various owners and permissions? if lxqt-archiver isn't supposed to do that, what is it supposed to do? |
There was no assumption in my previous comment about what you did or said. I clarified how things are, why they are so, and where the problem is (first paragraph).
You could view desktop entries, instead of executing them (e.g., in terminal), by clicking "Open" in the execution dialog: But, as I said, showing this dialog is a problem in
Editing files inside archives isn't supported yet (I added it to git Arqiver recently, but that code can't be used here). EDIT: If you mean viewing text files only by using a terminal-based editor, until this problem is fixed, there are only two ways: installing xterm (which works under Wayland too) or, provided that your terminal-based editor supports drag-and-drop, by dropping the item into it. Actually, there are two interrelated problems, one of which may be fixed in |
if the default program to open a file has Terminal=true in the desktop entry, lxqt-archiver will only try to use xterm as the terminal, and fail if it isn't found. there's no way to select a different terminal. (this is probably because xterm is the first entry in the libfm terminals.list)
Expected Behavior
double clicking a file should open the file in the default program, regardless of what terminal emulator is default
Current Behavior
when trying to open a file in an archive where the default program should open in a terminal, it gives an error message saying xterm couldn't be opened.
Possible Solution
ideally, use $TERMINAL to find the correct terminal emulator, and if it's unset try every option in the libfm-qt terminals.list.
if trying every terminal in the terminals.list isn't possible for some reason, then add a settings option to set the terminal emulator, since people might not know to set the $TERMINAL variable.
if no terminal is found, ideally let the user select a terminal emulator from their installed programs the same way they can select default programs to open files in pcmanfm-qt, or at least guide them to whatever settings option is available
Steps to Reproduce
Context
i use kakoune as my text editor, which only runs in a terminal, so the desktop file for it has
Terminal=true
. i don't have xterm, i'm on wayland and my only terminal emulator is foot. i have the TERMINAL environment variable set to foot.xdg-open opens kakoune properly with a text file, pcmanfm-qt can open it after tweaking the libfm terminals.list file, but lxqt-archiver only tries xterm.
System Information
The text was updated successfully, but these errors were encountered: