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

            Bug ID: 521300
           Summary: Dragging a URL from Vivaldi (Chromium-based) to
                    Dolphin on Wayland creates two .desktop link files
    Classification: Frameworks and Libraries
           Product: frameworks-kio
      Version First unspecified
       Reported In:
          Platform: Debian stable
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

# Bugreport-Entwurf für bugs.kde.org

**Product:** frameworks-kio
**Component:** kio (general)
**Platform:** Debian stable
**OS:** Linux (Wayland)
**Severity:** normal

## Summary
Dragging a URL from Vivaldi (Chromium-based) to Dolphin on Wayland creates two
.desktop link files instead of one, and the file based on the title has a
corrupted URL field.

## Steps to reproduce
1. Use Debian 13 (Trixie) with Plasma (Wayland session) and Vivaldi browser.
2. Open https://www.remotion.dev/docs/ai/skills in Vivaldi.
3. Drag the page (e.g. via the address bar / tab favicon) and drop it onto a
folder in Dolphin (e.g. /home/eduard/Downloads/temp/).

## Observed result
Two .desktop files are created:

**File 1:** `Agent Skills %7C Remotion %7C Make videos
programmatically.desktop`
```
[Desktop Entry]
Icon=unknown
Name=Agent Skills %7C Remotion %7C Make videos programmatically
Type=Link
URL[$e]=Agent Skills %7C Remotion %7C Make videos programmatically
```
Note: The URL field contains the page title instead of the actual URL — this
link is broken.

**File 2:** `https:⁄⁄www.remotion.dev⁄docs⁄ai⁄skills.desktop`
(slashes replaced with U+2044 FRACTION SLASH in the filename)
```
[Desktop Entry]
Icon=text-html
Name=https://www.remotion.dev/docs/ai/skills
Type=Link
URL[$e]=https://www.remotion.dev/docs/ai/skills
```
This file is functionally correct but has the URL as filename, not the page
title.

## Expected result
A single .desktop file should be created, with:
- Filename = page title (with problematic characters escaped)
- `URL[$e]=` = the actual page URL (decoded, e.g.
`https://www.remotion.dev/docs/ai/skills`)
- `Name=` = the decoded page title

## Analysis
Vivaldi/Chromium offers the dragged data in multiple MIME formats
simultaneously
(`text/uri-list` and a "URL + title" format such as `text/x-moz-url`, two
lines:
URL on line 1, title on line 2). KIO appears to process both MIME offers as
separate drops on Wayland (resulting in two files), and additionally swaps the
two lines of the "URL + title" format when generating File 1 — putting the
title into both `Name=` and `URL[$e]=` instead of using line 1 (URL) for
`URL[$e]=` and line 2 (title) for `Name=`/filename.

## Environment
- Debian 13 (Trixie), latest updates
- KDE Plasma 6.3.6 (Wayland session)
- Dolphin 25.04.3
- Vivaldi 8.0.4033.46 stable

## Workaround
Copy the link via Vivaldi's "Copy link address", then in Dolphin use
"Create New > Link to Location (URL)" and paste manually. This produces a
single, correct .desktop file (title must be set manually).

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

Reply via email to