Skip to content

Support scijava.app.categories property for overriding desktop entry categories #2

@ctrueden

Description

@ctrueden

The syncDesktopIntegration logic in LinuxPlatform hard-codes Science;Education; as the Categories value in the .desktop file. Applications built on SciJava may belong to different or additional categories.

Proposed change

Read a scijava.app.categories system property, falling back to "Science;" if absent — consistent with how scijava.app.icon and scijava.app.directory are already handled:

final String appCategories = System.getProperty("scijava.app.categories", "Science;");
df.setCategories(appCategories);

Notes

  • The value should follow the Desktop Entry spec semicolon-separated format, e.g. "Graphics;Science;".
  • On Windows/macOS the field is Linux-specific, so no cross-platform changes are needed beyond exposing the property.

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