[BUG] Notifications sent to system with no application name
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
Bug Report: PyCharm plugin sends notifications with empty app_name
Summary
On Linux (GNOME), notifications from Claude Code in PyCharm show as "Unknown App" because the D-Bus notification app_name field is empty.
Environment
- OS: Ubuntu (GNOME/Wayland)
- IDE: PyCharm Professional
- Claude Code: PyCharm plugin
Steps to Reproduce
- Open Claude Code in PyCharm terminal
- Start a task that will prompt for input
- Switch to another window
- When Claude sends a notification ("Claude is waiting for your input"), check the notification center
Expected Behavior
Notification should show "PyCharm" or "Claude Code" as the source app, and clicking the notification should bring PyCharm to the front.
Actual Behavior
- Notification shows "Unknown App"
- Clicking the notification does not bring PyCharm to the front
Debug Information
D-Bus monitor output shows empty app_name (first string parameter):
method call sender=:1.93 -> destination=org.freedesktop.Notifications
string "" <-- app_name is EMPTY
uint32 4
string "pycharm-professional_dialog-information"
string "Claude Code"
string "Claude is waiting for your input"
Suggested Fix
Set the app_name parameter in the D-Bus Notify call to "PyCharm" or "Claude Code" instead of an empty string.
Reference: https://specifications.freedesktop.org/notification-spec/notification-spec-latest.html
What Should Happen?
Show PyCharm as applicatoin
Error Messages/Logs
Steps to Reproduce
Run any prompt, notification at top of window shows unknown application
Claude Model
Opus
Is this a regression?
No, this never worked
Last Working Version
_No response_
Claude Code Version
2.1.6 (Claude Code)
Platform
Anthropic API
Operating System
Ubuntu/Debian Linux
Terminal/Shell
PyCharm terminal
Additional Information
_No response_
This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗