Skip to content

.desktop files with NoDisplay=true can't be executed #143

@fulalas

Description

@fulalas

Steps to replicate:

  1. as root, edit the file/usr/share/applications/com.system76.CosmicEdit.desktop
  2. add in the last line NoDisplay=true and save
  3. close all instances of cosmic-files
  4. open cosmic-files and try to double click on any .txt file

Current behavior:

  1. Nothing happens

Expected behavior:

  1. the application (cosmic-edit) should open
  2. the .desktop file should not appear in the applications menu (i.e. it's hidden but it should work!)

This works in all desktop environments I tested so far, including Xfce, Cinnamon, LXQt, LXDE, KDE and GNOME.

Also, cosmic-files needs to be restarted in order to get the changes made in the .desktop files, something that other file managers don't require (e.g Thunar). Not to mention there's no 'Open with...' when right clicking on .desktop files.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions