Skip to content
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

Terminal wezterm missing probably due to flatpak #1337

Open
igorzhilin opened this issue Dec 14, 2023 · 5 comments
Open

Terminal wezterm missing probably due to flatpak #1337

igorzhilin opened this issue Dec 14, 2023 · 5 comments

Comments

@igorzhilin
Copy link

Hi Manuel

I have wezterm installed via flatpak. I use alias wezterm='flatpak run org.wezfurlong.wezterm'.

In the Albert source code file terminalprovider.cpp, I see the static const vector<ExecutableTerminal> exec_terminals that contains a bunch of terms including wezterm. But the problem is that my wezterm is flatpak. which wezterm returns nothing.

I suppose that's why it's not appearing.

What would be your suggestion to this? I guess the quickest workaround is to create a symlink wezterm somewhere in $PATH so that which wezterm can find it.

But maybe another solution?

@ManuelSchneid3r
Copy link
Member

can you tell how one does run a command in this terminal from command line? I mean does the flatpak have a cli like
flatpak run org.wezfurlong.wezterm -x <any commandline>?

@ManuelSchneid3r
Copy link
Member

Wait theres still the problem that it would not be detected correctly. Wouldnt it make sense for such terminals to install a bootstrapper shell script into /usr/local/bin? Something like

#!/usr/bin/env sh
# Filename: /usr/local/bin/wezterm
flatpak run org.wezfurlong.wezterm $@

@ManuelSchneid3r
Copy link
Member

@igorzhilin i am not that familar with flatpak. Is it common practice to ship a bootstrapper script or a desktop file?

@ManuelSchneid3r
Copy link
Member

was just fiddling with flatpak and found that it automatically does what i suggested. flatpak also modifies PATH. doesnt wezterm do it?

Bildschirmfoto vom 2024-04-23 21-46-30

@ManuelSchneid3r
Copy link
Member

ManuelSchneid3r commented May 11, 2024

@igorzhilin I have not a linux box available atm, but I am working on putting the terminal functionality in a plugin. I think it is not that hard to cover flatpaks too. I mean we maintain a hard coded list anyway so we could simply use flatpak list to check for availability and add terms like "flatpak run org.wez….wezterm" to run. The thing I wonder now: is it even possible to run flatpak terminals like regular terminals using a commandline with parameters? i mean can we call things like "flatpak run org.foo.Bar -e my_fancy_commandline with_params"? Can you please check this quickly?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants