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

            Bug ID: 433304
           Summary: Adding a new automatically starting application
                    generates deprecated/invalid .desktop file
           Product: systemsettings
           Version: 5.21.0
          Platform: openSUSE RPMs
                OS: Linux
            Status: REPORTED
          Severity: normal
          Priority: NOR
         Component: kcm_autostart
          Assignee: nicolas.fe...@gmx.de
          Reporter: szots...@gmail.com
                CC: plasma-b...@kde.org
  Target Milestone: ---

SUMMARY

I created a new autostart .desktop file through the KCM and the validation
service complains.

STEPS TO REPRODUCE
1. Open Automatic start KCM module
2. Add a new "Application"
3. Use an executable (I used /usr/bin/xbindkeys)
4. Run the validator

OBSERVED RESULT

The resulting .desktop file looks like this:

$> cat .config/autostart/xbindkeys.desktop 
[Desktop Entry]
Comment[hu_HU]=
Comment=
Exec=/usr/bin/xbindkeys
GenericName[hu_HU]=
GenericName=
Icon=system-run
MimeType=
Name[hu_HU]=xbindkeys
Name=xbindkeys
Path=
StartupNotify=true
Terminal=false
TerminalOptions=
TryExec=/usr/bin/xbindkeys
Type=Application
X-DBUS-ServiceName=
X-DBUS-StartupType=
X-KDE-SubstituteUID=false
X-KDE-Username=

The validator tells for this file:

$> desktop-file-validate .config/autostart/xbindkeys.desktop 
.config/autostart/xbindkeys.desktop: warning: value "" for key "Comment[hu_HU]"
in group "Desktop Entry" looks the same as that of key "GenericName[hu_HU]"
.config/autostart/xbindkeys.desktop: warning: value "" for key "Comment" in
group "Desktop Entry" looks the same as that of key "GenericName"
.config/autostart/xbindkeys.desktop: warning: value "" for key "Path" in group
"Desktop Entry" does not look like an absolute path
.config/autostart/xbindkeys.desktop: warning: key "TerminalOptions" in group
"Desktop Entry" is deprecated


Possibly this is the reason why systemd-xdg-autostart-generator cannot generate
a .service file which runs without error messages showing up in the log:

febr 20 09:04:12 openSUSE systemd-xdg-autostart-generator[1507]:
/home/aki/.config/autostart/xbindkeys.desktop:14: Unknown key name
'TerminalOptions' in section 'Desktop Entry', ignoring.

febr 20 09:04:12 openSUSE systemd[1499]:
/run/user/1000/systemd/generator.late/app-xbindkeys-autostart.service:17:
WorkingDirectory= path is not absolute, ignoring:


EXPECTED RESULT

No warning messages.


Operating System: openSUSE Tumbleweed 20210217
KDE Plasma Version: 5.21.0
KDE Frameworks Version: 5.79.0
Qt Version: 5.15.2
Kernel Version: 5.10.16-1-default
OS Type: 64-bit
Graphics Platform: X11

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

Reply via email to