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

            Bug ID: 518317
           Summary: Add device action GUI is broken.
    Classification: Applications
           Product: systemsettings
      Version First 6.6.3
       Reported In:
          Platform: Neon
               URL: https://discuss.kde.org/t/cant-add-device-action-in-se
                    ttings-disks-cameras/45779
                OS: Linux
            Status: REPORTED
          Keywords: usability
          Severity: normal
          Priority: NOR
         Component: kcm_deviceautomounter
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
  Target Milestone: ---

SUMMARY


STEPS TO REPRODUCE
1. Go to System Settings -> Devices & Cameras -> Device Actions.
2. Click on Add..
3. Enter a name for the new action in the popup dialog and click OK.

OBSERVED RESULT

Nothing happens. A .desktop file gets created in
`~/.local/share/solid/actions/` and is incomplete.

EXPECTED RESULT

Some kind of dialog to edit the new action.

SOFTWARE/OS VERSIONS

Linux/KDE Plasma: KDE Neon
KDE Plasma Version: 6.6.3
KDE Frameworks Version: 6.24
Qt Version: 6.10.2

ADDITIONAL INFORMATION

Since the created .desktop file is broken, add one manually.

1. Create a valid device action .desktop file in ~/.local/share/solid/actions/
with the following contents:

[Desktop Entry]
Type=Application
Name=TestAction
Exec=/usr/bin/true
Icon=folder-sync
X-KDE-SubstituteUID=false
X-KDE-StartupNotify=false
X-KDE-Device-Interface=Solid::StorageAccess
X-KDE-Device-Usage=filesystem

Ensure permissions are correct: chmod 644 for the file, chmod 700 for the
folder.
Restart plasmashell: 
kquitapp5 plasmashell && kstart5 plasmashell

Open System Settings → Device Actions.

Expected Results:

The new device action should appear in the list.
Clicking “Add” in the GUI should allow creating a new action and have it appear
immediately.

Actual Results:

- No device actions appear in the list.
- Clicking “Add” opens the dialog, entering a name and clicking OK creates a
.desktop file, but it does not show up in System Settings.
- This occurs even if the device is connected and recognized by Plasma/KDE.
- Solid logs show warnings about desktop entry parsing, e.g.:
kf.service.services: The desktop entry file
"/home/user/.local/share/solid/actions/TestAction.desktop" does not have a
"Type=Application" set
- The .desktop file has correct Type=Application and other required Plasma 6
fields.
- Restarting Plasma multiple times has no effect.
- This happens with multiple device types (USB, storage devices) — the problem
is not the device itself (device is mounted and works normally).
- Manual creation of .desktop files and using the “Add” button in System
Settings produce the same result.

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

Reply via email to