xdg-desktop-portal-gtk icon indicating copy to clipboard operation
xdg-desktop-portal-gtk copied to clipboard

AppChooserDialog should not remove URL scheme

Open sersorrel opened this issue 1 year ago • 0 comments

AppChooserDialog currently truncates URLs to 40 characters for display:

https://github.com/flatpak/xdg-desktop-portal-gtk/blob/dcbc052bd5ba9816b6ac8d8a6b6e562a27b6685d/src/appchooserdialog.c#L296-L300

This is to avoid extremely long URLs making the window very wide – obviously this wouldn't be desirable:

image

but the current state of things isn't really great either; if your problem is that you lack an app for dealing with a special URL scheme, you have no idea what the scheme is:

image

Would truncating the string by removing characters from the middle be possible instead?

Alternatively, could the entire URL be displayed, but wrapped onto multiple lines?

sersorrel avatar Jan 31 '24 17:01 sersorrel