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

            Bug ID: 419449
           Summary: Application Launcher ignores filenames of recent
                    documents from hash sign on
           Product: plasmashell
           Version: 5.15.5
          Platform: Other
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: Application Menu (Kicker)
          Assignee: h...@kde.org
          Reporter: yoeho...@protonmail.com
                CC: plasma-b...@kde.org
  Target Milestone: 1.0

Created attachment 127134
  --> https://bugs.kde.org/attachment.cgi?id=127134&action=edit
a wrong file name shows in history tab

SUMMARY

When the filename of a recent document includes a hash sign, the history
tab in Application Launcher shows a file whose name only has the part
preceding the hash sign.  And when I click on the entry from the history
tab, it tries to open a file whose name is the part preceding the hash
sign.

STEPS TO REPRODUCE

Create a file `~/foo#`.

    echo foo > ~/'foo#'

Double click on it in Dolphin to open it.

There should be a new file in `~/.local/share/RecentDocuments` and a new
entry in the History tab in Application Launcher.

    $ ls -al ~/.local/share/RecentDocuments/
    total 4
    drwx------. 1 user user   24 Mar 31 11:24 .
    drwxr-xr-x. 1 user user 1334 Mar 30 11:27 ..
    -rw-------. 1 user user  114 Mar 31 11:24 foo#.desktop

    $ cat ~/.local/share/RecentDocuments/foo'#'.desktop
    [Desktop Entry]
    Icon=text-plain
    Name=foo#
    Type=Link
    URL[$e]=file:$HOME/foo%23
    X-KDE-LastOpenedWith=org.kde.kwrite

Click on the new entry in Application Launcher.

OBSERVED RESULT

I get asked to choose a program to open foo.  I can choose kwrite, it
says "new file".  If I type in `echo` and check "Run in terminal" and
"Do not close when command exits", I get `/home/user/foo` echoed to my
terminal.

EXPECTED RESULT

I expect clicking the entry from Application Launcher to open the file
`foo#`.

SOFTWARE/OS VERSIONS

Operating System: Fedora 30
KDE Plasma Version: 5.15.5
KDE Frameworks Version: 5.64.0
Qt Version: 5.12.5

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

Reply via email to