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 167
    • Issues 167
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 39
    • Merge requests 39
  • 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
  • Issues
  • #182
Closed
Open
Issue created Jan 08, 2021 by Alexandre Abrioux@alexandre.abrioux

xdg-open fails to open URL when .desktop file path contains spaces

Hi!

My .desktop file resides here and contains spaces:

~/.local/share/applications/userapp-Firefox Developer Edition-UV383Z.desktop

While using xdg-open I encounter the following error:

$ BROWSER=firefox ./xdg-open https://google.com
./xdg-open: 1: ./xdg-open: xdg-mime: not found
./xdg-open: 881: ./xdg-open: firefox: not found
./xdg-open: 881: ./xdg-open: firefox: not found
xdg-open: no method available for opening 'https://google.com'

I will post a merge request following the opening of this issue to try and fix it.

Thanks!

Assignee
Assign to
Time tracking