Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • K KGlobalAccel
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Bugzilla
    • Bugzilla
  • Merge requests 7
    • Merge requests 7
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • FrameworksFrameworks
  • KGlobalAccel
  • Merge requests
  • !47

Launch app in terminal when Terminal=true

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Jin Liu requested to merge genericity/kglobalaccel:work/launch-in-terminal into master Jun 10, 2022
  • Overview 22
  • Commits 1
  • Pipelines 7
  • Changes 2

When the desktop file has Terminal=true (e.g. htop), it should be launched in a terminal.

Instead of calling "kstart5 -- ", this calls "kstart5 --application " when and only when:

  1. kstart5 is available
  2. the desktop file is in XDG_DATA_HOME/applications/, not XDG_DATA_HOME/kglobalaccel/
  3. we are launching the desktop file's main group, not other actions

BUG: 455117

Edited Jun 23, 2022 by Jin Liu
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: work/launch-in-terminal