-
-
Notifications
You must be signed in to change notification settings - Fork 13
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
Changing Terminal emulator #289
Comments
Hi, Thanks for the ticket. What do you mean "it worked but also ran konsole and alacritty"? The way to force arch-update to use a specific terminal emulator is described here. Have you followed those instructions? |
I think I was able to understand and reproduce the issue in a test environment. Indeed, when I change the Exec line in the desktop file to use However I tried using xfce4-terminal instead of alacritty and everything worked as expected (with no konsole window opening). This is most likely an alacritty and / or a driver issue (e.g. mesa), but definitely not an issue with Arch-Update. |
I also had the same problem with What I can say though, is that I've found a workaround for the problem. In GLib/gio there are hardcoded terminal emulators that the code is looking for and the order they are defined in kind of gives them a precedence over each other. So when you want to run another terminal emulator instead of Konsole, you just have to symlink the terminal you want to use to one of the other ones that are defined above Because the syntax to run another program with kitty is simply So to run arch-update with alacritty instead of Konsole, you could simply create a symlink named kgx pointing to the alacritty executable like so
Edit: I also think that the info in the readme with using "xterm" is kind of wrong, or at least doesn't work in some cases, because it takes the least precedence of all the terminal emulators defined in the list linked above. If you for example have Konsole installed and create the xterm symlink, it will still use Konsole, as that has a higher position in the list. |
Hi @leyyce, thanks for the details!
This assume that you don't have any other terminal emulators than e.g. alacritty installed (or at least that you don't have any other terminal emulators present in the list of gio known terminals), indeed. I will enhance the documentation with your findings and / or link to your comment in it :) |
After looking into this further, I think the "correct" way to approach this would be to actually install xdg-terminal-exec and to set it up correctly according to the info provided in the projects README. I'll try this out when I find the time and report back here. Might add a tutorial section to the readme according to my findings if you want me to 🙂 |
I've already studied that route in the past, but currently this I'd rather not document it until it is actually merged / supported. |
As far as I understood it, it's a proposal that's not officially integrated into the freedesktop.org specifications (yet), but it's kind of already (unofficially) supported by GLib as a bandaid solution (evident by To be real, neither this, nor symlinking a terminal emulator executable to the place where another terminal emulator is actually expected to reside is a clean or "officially supported" solution, but imo using a specification that was specifically proposed to handle situations like this and can actually be configured (even without root rights and on a per user basis) instead of manually creating a random symlink is the saner and cleaner choice, wouldn't you agree? Anyway, that's just my two cents 😄 |
In fact, the discussion on the MR is still ongoing and some commits / comments have been made recently (respectively 2 and 1 month ago), so I still have hope that this gets merged & officially supported at some point.
I admit I'm not so happy with the symlink workaround either, that's definitely not a clean solution indeed.
Fair enough. If you're still down to experiment with this a bit and report your findings (or even make a modification proposal for the related section in the README via a pull request, if you feel like it), that would be really appreciated! 🙏 Hopefully that can be documented in a short, simple & intelligible enough way though. |
@leyyce 👋 Sorry to ping... Just wanted to ask if you're still interested to experiment a bit with Also, happy holidays if you have some :) |
Hi @Antiz96 , I'm basically still up for it, I just have to find the time 😄 I'm tied up in two projects for my bachelor's degree that take up a lot of my time right now, but I'm still set on doing this. I'll try to work on it as soon as I can. Also wishing you happy holidays :) |
Sure, no problem. Good luck for your bachelor's projects 😉 |
I wanted it to use alacritty.
Chaning the Exec line worked but it also ran konsole and alacritty. i am using Plasma 6
The text was updated successfully, but these errors were encountered: