Tuba
Tuba copied to clipboard
[Bug]: Adding Media to a post seems to behave erractically (Mobian Trixie/L5)
Describe the bug
I am trying to post on Tuba, and when I try to add media, it does not seem to work. Clicking on it seems to bring up a pop up menu Paste more often than not, but if I click on it enough times, it will work.
Steps To Reproduce
Click on the Pencil Icon (for new post), go to Media, click Add Media
Logs and/or Screenshots
No response
Instance Backend
Mastodon
Operating System
Mobian
Package
Flatpak
Troubleshooting information
This happens on the Flatpak and native Debian App.
Additional Context
No response
I assume this is a mobile device using touch as input, right?
Just to make sure, does it work as expected when you edit your profile? (Go to your Profile, click the pencil icon on the headerbar, on the new window click the pencil icon on your profile picture or cover)
If it does, then it's probably a gesture issue:
There's something wrong with gestures on mobile (a similar bug occurred some versions ago with a swipe-down gesture being activated on touch instead which ended with removing it altogether (#297)).
It's supposed to open the context menu on secondary click or long tap
This is where the gestures get added:
https://github.com/GeopJr/Tuba/blob/3ddccee4aa62b4013f7e2609174ce221d3723982/src/Dialogs/Composer/AttachmentsPage.vala#L88-L129
I can't reproduce it on desktop or qemu so I'm leaving it as is for now.
If it's too annoying, you can remove the gesture by commenting out the following:
https://github.com/GeopJr/Tuba/blob/3ddccee4aa62b4013f7e2609174ce221d3723982/src/Dialogs/Composer/AttachmentsPage.vala#L92
https://github.com/GeopJr/Tuba/blob/3ddccee4aa62b4013f7e2609174ce221d3723982/src/Dialogs/Composer/AttachmentsPage.vala#L99
Got the same problem here, with a Steam Deck using Ubuntu MATE 23.10. The "Open" dialog tries to open, then nopes out. It works 10% of the time, at best.
Clicking on my profile, then the pencil merely crashes the app.
os: GNOME 45 (Flatpak runtime) prefix: /app flatpak: true version: 0.5.0 (production) gtk: 4.12.3 (4.12.1) libadwaita: 1.4.0 (1.4.0) libsoup: 3.4.3 (3.4.3) libgtksourceview: 5.10.0 (5.10.0)
I don't think this is the same issue, This issue is about touch input, specifically the click and hold gesture being activated on single click. Yours sounds closer to #414, make sure your system is up to date, mostly the desktop portals!
I'll closer into it when in a vm
@240-185 Managed to reproduce it and fix it in a vm. It's the portal / the issue I linked above. Not sure when Ubuntu is going to push 1.15 to stable but installing it manually works. You can get it from https://launchpad.net/ubuntu/+source/xdg-desktop-portal-gtk (direct link to amd64 https://launchpad.net/ubuntu/+archive/primary/+files/xdg-desktop-portal-gtk_1.15.1-1_amd64.deb)
Keep in mind that I do not use that distro and I am unaware of any breakages that installing it might cause.