https://bugs.kde.org/show_bug.cgi?id=529191
Bug ID: 529191
Summary: Telegram standalone downloaded from official website
is not detected correctly by Purpose share plugin due
to AppID mismatch
Classification: Frameworks and Libraries
Product: frameworks-purpose
Version First 6.31.0
Reported In:
Platform: Neon
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ---
Created attachment 198712
--> https://bugs.kde.org/attachment.cgi?id=198712&action=edit
Error after invoking the sharing option to transfer a file
Summary
Purpose Telegram plugin fails to use the application identity registered by
Telegram Desktop standalone installation
Description
Environment
- KDE neon User Edition
- Plasma 6.8.2
- KDE Frameworks 6.31.0
- Qt 6.11.1
- Wayland session
Problem
Telegram Desktop downloaded from the official Telegram website is correctly
integrated into the desktop environment and operates normally.
However, KDE Purpose does not correctly recognize or communicate with that
installation.
Investigation
The standalone Telegram package registers itself using a generated application
identifier derived from the canonical identifier "org.telegram.desktop".
The generated identifier is consistently used throughout the system and is
correctly recognized by multiple desktop components.
The generated application identifier is used by:
- the desktop launcher created for Telegram;
- the D-Bus service created for Telegram;
- MIME handler registrations;
- runtime information reported by Telegram itself.
In other words, Telegram and the desktop environment consistently agree on the
generated application identifier.
Purpose behaviour
The Telegram sharing plugin appears to look only for the canonical identifier
"org.telegram.desktop".
Evidence supporting this conclusion:
- The Telegram share action is not available initially.
- Creating a launcher using the canonical identifier immediately makes "Send
via Telegram..." appear in the Purpose share menu.
- Therefore the plugin appears to detect Telegram through the canonical
identifier rather than the actual identifier registered by the running
application.
Resulting mismatch
After the share action becomes visible, Purpose launches Telegram but the
sharing operation fails.
Plasma reports a D-Bus communication timeout rather than a missing application.
This suggests that:
- Telegram is present.
- Telegram can be started.
- Purpose is not communicating with the identifier actually used by the
Telegram instance registered in the session.
Expected behaviour
Purpose should discover and use the Telegram application identifier that is
actually registered by the system and used by the running Telegram instance,
rather than relying exclusively on the canonical desktop identifier.
The issue appears to be a mismatch between the identifier expected by the
Purpose Telegram plugin and the identifier actually registered by the
standalone Telegram Desktop installation.Summary
Purpose Telegram plugin fails to use the application identity registered by
Telegram Desktop standalone installation
Investigation
The standalone Telegram package registers itself using a generated application
identifier derived from the canonical identifier "org.telegram.desktop".
The generated identifier is consistently used throughout the system and is
correctly recognized by multiple desktop components.
The generated application identifier is used by:
- the desktop launcher created for Telegram;
- the D-Bus service created for Telegram;
- MIME handler registrations;
- runtime information reported by Telegram itself.
In other words, Telegram and the desktop environment consistently agree on the
generated application identifier.
Purpose behaviour
The Telegram sharing plugin appears to look only for the canonical identifier
"org.telegram.desktop".
Evidence supporting this conclusion:
- The Telegram share action is not available initially.
- Creating a launcher using the canonical identifier immediately makes "Send
via Telegram..." appear in the Purpose share menu.
- Therefore the plugin appears to detect Telegram through the canonical
identifier rather than the actual identifier registered by the running
application.
Resulting mismatch
After the share action becomes visible, Purpose launches Telegram but the
sharing operation fails.
Plasma reports a D-Bus communication timeout rather than a missing application.
This suggests that:
- Telegram is present.
- Telegram can be started.
- Purpose is not communicating with the identifier actually used by the
Telegram instance registered in the session.
The generated Telegram application identifier is consistently recognized by the
desktop environment and used by:
- the Telegram desktop launcher;
- the Telegram D-Bus service;
- MIME registrations;
- Telegram runtime information.
Therefore the generated identifier appears to be the effective application
identity used by Telegram and acknowledged by the desktop environment.
The mismatch seems to occur specifically inside the Purpose Telegram
integration.
Purpose does not expose the Telegram share action until a launcher using the
canonical identifier "org.telegram.desktop.desktop" is manually created.
This suggests that Purpose is not using the application identifier actually
registered by Telegram, but is instead searching for a fixed canonical
identifier.
As a result, Purpose can be forced to expose the Telegram share action, but the
subsequent D-Bus communication fails because the running Telegram instance
continues to use the generated application identifier recognized everywhere
else in the system.
Expected behaviour
Purpose should discover and use the Telegram application identifier that is
actually registered by the system and used by the running Telegram instance,
rather than relying exclusively on the canonical desktop identifier.
The issue appears to be a mismatch between the identifier expected by the
Purpose Telegram plugin and the identifier actually registered by the
standalone Telegram Desktop installation.
Attached screenshot explanation
The attached screenshot was taken after manually renaming the Telegram desktop
entry to the canonical identifier expected by Purpose.
Before that modification, "Send via Telegram..." was not available in the
sharing menu.
After the modification:
- Purpose immediately exposes the "Send via Telegram..." action.
- This demonstrates that the Telegram plugin recognizes the canonical
identifier.
- Telegram is launched when the action is selected.
- The sharing operation still fails with a D-Bus timeout error.
This behavior suggests that the Telegram plugin successfully detects the
manually-created canonical desktop identifier, but does not communicate with
the actual Telegram instance registered in the session using its generated
application identifier.
The generated application identifier continues to be used consistently by
Telegram itself, its D-Bus registration, launcher registration and MIME
associations.
Therefore the issue does not appear to be Telegram discovery in general, but
rather a mismatch between the identifier expected by Purpose and the identifier
actually registered and used by the standalone Telegram installation.
--
You are receiving this mail because:
You are watching all bug changes.