Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • X xdg-utils
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 165
    • Issues 165
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 36
    • Merge requests 36
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • xdg
  • xdg-utils
  • Merge requests
  • !52

Replace BASH substitutions with printf

  • Review changes

  • Download
  • Email patches
  • Plain diff
Open Dani Llewellyn requested to merge diddledani/xdg-utils:issue-10 into master May 03, 2022
  • Overview 3
  • Commits 2
  • Changes 1

When running on a Debian-based system, such as Ubuntu, /bin/sh is provided by DASH, not BASH. This means that BASHisms are unsupported. There are two BASH variable substition instances within the code of xdg-settings.in that cause KDE users to be unable to find the current web browser because the script dies when hitting this unsupported code.

  • Replace ${variable:0:1} with printf-based equivalent.

Fixes #10

Signed-off-by: Dani Llewellyn dani@bowlhat.net

Edited May 03, 2022 by Dani Llewellyn
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: issue-10