https://bugs.kde.org/show_bug.cgi?id=472650

            Bug ID: 472650
           Summary: mailto: link fails for Thunderbird
    Classification: Plasma
           Product: plasmashell
           Version: 5.27.4
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Activity Switcher
          Assignee: plasma-b...@kde.org
          Reporter: akaya...@gmail.com
                CC: ivan.cu...@kde.org
  Target Milestone: 1.0

SUMMARY
Using Obsidian to click on mailto: links results in nothing in the case of
Thunderbird being the mail client.

OBSERVED RESULT
Log "/usr/bin/xdg-email: line 619: thunderbird.desktop: command not found"

run_thunderbird()
{
    local THUNDERBIRD MAILTO NEWMAILTO TO CC BCC SUBJECT BODY ATTACH
    THUNDERBIRD="$1"
    MAILTO=$(echo "$2" | sed 's/^mailto://')
    echo "$MAILTO" | grep -qs "^?"
    if [ "$?" = "0" ] ; then
        MAILTO=$(echo "$MAILTO" | sed 's/^?//')
    else
        MAILTO=$(echo "$MAILTO" | sed 's/^/to=/' | sed 's/?/\&/')
    fi

    MAILTO=$(echo "$MAILTO" | sed 's/&/\n/g')
    TO=$(/bin/echo -e $(echo "$MAILTO" | grep '^to=' | sed
's/^to=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }'))
    CC=$(/bin/echo -e $(echo "$MAILTO" | grep '^cc=' | sed
's/^cc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }'))
    BCC=$(/bin/echo -e $(echo "$MAILTO" | grep '^bcc=' | sed
's/^bcc=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }'))
    SUBJECT=$(echo "$MAILTO" | grep '^subject=' | tail -n 1)
    BODY=$(echo "$MAILTO" | grep '^body=' | tail -n 1)
    ATTACH=$(/bin/echo -e $(echo "$MAILTO" | grep '^attach=' | sed
's/^attach=//;s/%\(..\)/\\x\1/g' | awk '{ printf "%s,",$0 }' | sed 's/,$//'))

    if [ -z "$TO" ] ; then
        NEWMAILTO=
    else
        NEWMAILTO="to='$TO'"
    fi
    if [ -n "$CC" ] ; then
        NEWMAILTO="${NEWMAILTO},cc='$CC'"
    fi
    if [ -n "$BCC" ] ; then
        NEWMAILTO="${NEWMAILTO},bcc='$BCC'"
    fi
    if [ -n "$SUBJECT" ] ; then
        NEWMAILTO="${NEWMAILTO},$SUBJECT"
    fi
    if [ -n "$BODY" ] ; then
        NEWMAILTO="${NEWMAILTO},$BODY"
    fi

    if [ -n "$ATTACH" ] ; then
        NEWMAILTO="${NEWMAILTO},attachment='${ATTACH}'"
    fi

    NEWMAILTO=$(echo "$NEWMAILTO" | sed 's/^,//')
    DEBUG 1 "Running $THUNDERBIRD -compose \"$NEWMAILTO\""
    "$THUNDERBIRD" -compose "$NEWMAILTO"
^^^^ this is line 619 ^^^^

 if [ $? -eq 0 ]; then
        exit_success
    else
        exit_failure_operation_failed
    fi
}



EXPECTED RESULT

Email program to open


SOFTWARE/OS VERSIONS

Linux/KDE Plasma: 5.27.4
(available in About System)
KDE Plasma Version: 
KDE Frameworks Version: 5.105.0
Qt Version: 5.15.3


I think what is going on here might be that because Thunderbird was installed
as part of Rocky 9.2 distro there might be some sort of registration issue.
Perhaps solved by creating a thunderbird.desktop file? Seems a bit odd if that
is the case to rely on that when the program is installed to being within the
menu system? 

Is this an error or a unmet requirement?

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to