Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • G GLib
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 856
    • Issues 856
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 34
    • Merge requests 34
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Artifacts
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
    • Model experiments
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOMEGNOME
  • GLib
  • Issues
  • #549
Closed (duplicated) (duplicated)
Open
Issue created May 23, 2012 by Bugzilla@bugzilla-migration💬Reporter

g_file_new_for_commandline_arg() doesn't work well when directory has some colon

Submitted by Vincent Untz @vuntz

Link to original bug (#676626)

Description

Try the following:

mkdir foo:bar gedit foo:bar/test

gedit will fail to open the file with a "Could not open the file foo:///bar/test. gedit cannot handle foo: locations." error.

I'm actually unsure if that's something that is fixable, as g_file_new_for_commandline_arg() works like this by design. But for URI schemes that we don't support, this feels wrong.

What we could do is test if foo:bar is an existing directory, but I doubt we want to do some IO in g_file_new_for_commandline_arg().

I've no clue if this is just WONTFIX or if there is a proper solution.

(And yes, I'm aware that this works fine if I use a proper URI for the file, or if I use the full path)

Assignee
Assign to
Time tracking