<table><tr><td style="">nicolasfella added a comment.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D12896">View Revision</a></tr></table><br /><div><div><p>I've played around with flatpaked Telegram and made it working. However:<br />
My Telegram.desktop file executes this:<br />
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=telegram-desktop --file-forwarding org.telegram.desktop -- @@u %u @@<br />
I can share a file using<br />
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=telegram-desktop --file-forwarding org.telegram.desktop -sendpath @@ /home/nico/test.py @@<br />
But that would require changing the command I get from the desktop file. I can achieve the same goal just by appending something to the command from the desktop file:<br />
/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=telegram-desktop --file-forwarding org.telegram.desktop -- @@u %u @@ -sendpath @@ /home/nico/test.py @@<br />
However, appending this to the command does not work with the regular command.<br />
I don't see any way to support all without some special-case handling for flatpak. I didn't even test snap.<br />
Any ideas?</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R495 Purpose Library</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D12896">https://phabricator.kde.org/D12896</a></div></div><br /><div><strong>To: </strong>nicolasfella, apol<br /><strong>Cc: </strong>ngraham, kde-frameworks-devel, apol, michaelh, bruns<br /></div>