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

Requesting Espanso #454

Open
bmp opened this issue Sep 1, 2023 · 13 comments
Open

Requesting Espanso #454

bmp opened this issue Sep 1, 2023 · 13 comments
Labels
help wanted Keep Bluefin alive, dive in!

Comments

@bmp
Copy link

bmp commented Sep 1, 2023

Describe the package

Espanso is a text expansion tool that has been in my workflow for a while. Given the quality of life improvements already available on Universal Blue, this seems like a great addition. Their flatpak addition also seems to have stalled for now.

Image

All Images

@castrojo
Copy link
Member

castrojo commented Sep 1, 2023

I'd love to try this but ideally we'd have a package for this. Maybe we can toss this in a COPR or something. (Appimage isn't an option I'm willing to support)

@castrojo
Copy link
Member

castrojo commented Sep 3, 2023

There's a COPR now, if it gets put into Fedora then it'll be real easy: https://discussion.fedoraproject.org/t/espanso-copr-available-for-testing/88921

@bmp
Copy link
Author

bmp commented Sep 4, 2023

Oh wow! That was quicker than I thought, I didn't know this could happen on such short turn around times!

@bmp
Copy link
Author

bmp commented Sep 11, 2023

Update:

I have installed the COPR as suggested on Discord in the following manner,

  1. Downloaded the repo file from https://copr.fedorainfracloud.org/coprs/eclipseo/espanso/
  2. Added it to /etc/yum.repos.d
  3. Installed it as rpm-ostree install espanso-wayland.
  4. Now I am able to follow the guide to enable espanso-wayland as a systemd service and it launches.

However, I still have the following issues,

  1. I am unable to use setcap as indicated,
    sudo setcap "cap_dac_override+p" $(which espanso-wayland) I get the error Failed to set capabilities on file /usr/bin/espanso-wayland' (Read-only file system)
  2. A window/process that I am unable to dismiss is created. If I kill it with ps -ef | grep 'espanso-wayland' and then kill, then it doesn't run at all. Here is a video for it.
    Screencast from 2023-09-11 22-54-38.webm

Any tips would be really helpful!

I have reverted back to the distrobox approach that worked earlier for me.

@bmp
Copy link
Author

bmp commented Sep 15, 2023

Just checking in to see if any of you have tried this!

@castrojo castrojo added the help wanted Keep Bluefin alive, dive in! label Oct 14, 2023
@bmp
Copy link
Author

bmp commented Nov 14, 2023

@castrojo Can you let me know what help is required? I'd be happy to learn and help if I can.

@castrojo
Copy link
Member

Someone needs to PR in the copr and enable the package and then probably fix the issues you ran into.

@m2Giles
Copy link
Member

m2Giles commented Jan 17, 2024

Please see ublue-os/bazzite@ed975d1

For a method of setting capabilities for binaries.

@bmp
Copy link
Author

bmp commented Jan 17, 2024

@m2Giles Is this the specific line that you refer to ExecStartPre=/usr/bin/mount --bind /usr/local/bin/.sunshine /usr/bin/sunshine?

@m2Giles
Copy link
Member

m2Giles commented Jan 17, 2024

Please read through the following to understand what is going on.

https://universal-blue.discourse.group/t/selinux-workarounds-for-binaries-with-the-wrong-label/342?u=m2giles

Instead of SELinux issues, your binary doesn't a capability it needs to function. So you can use the following ExecStart=/usr/sbin/setcap cap_dac_override+p /usr/bin/espanso-wayland)

If espanso-wayland is a symlink you will need to modify it for following the symlink instead.

@bmp
Copy link
Author

bmp commented Jan 17, 2024

Sigh, copied the wrong line, I was referring to ExecStart=/usr/sbin/setcap cap_sys_admin+p /usr/bin/sunshine instead of what I had put in.

Thank you for the details, I'll check the links and report back to see if this works.

@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Jun 25, 2024
@castrojo castrojo removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Jun 30, 2024
@dosubot dosubot bot added the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Sep 29, 2024
@dosubot dosubot bot closed this as not planned Won't fix, can't repro, duplicate, stale Oct 13, 2024
@dosubot dosubot bot removed the stale Issue has not had recent activity or appears to be solved. Stale issues will be automatically closed label Oct 13, 2024
@castrojo castrojo reopened this Oct 13, 2024
@GarciaLnk
Copy link
Contributor

Are we still interested in this? Espanso is packaged in Terra's repo with the SELinux fixes and it works flawlessly.

@castrojo
Copy link
Member

We're in the process of trimming down our third party repos so not looking to add another.

However @tulilirockz what do you think about tossing this into ublue-os/staging so we can play with it? I think it's worth a shot, there's killer features in there that I think are worth investigating!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Keep Bluefin alive, dive in!
Projects
None yet
Development

No branches or pull requests

4 participants