Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • G girara
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 6
    • Issues 6
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 2
    • Merge requests 2
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • pwmt
  • girara
  • Issues
  • #15

Closed
Open
Created Sep 05, 2021 by japm48@japm48

zathurarc not loading if a line contains only spaces

If any line in zathurarc contains only spaces, the config line-by-line loading is immediately stopped with no error message (this could be the reason for similar bugs where the config file is mysteriously not loading). At least this is true for the first line.

It took me quite a while to pinpoint this, I had to recompile in debug mode and use GDB.

Apparently, the culprit is the function g_shell_parse_argv in Glib, which is called from girara in config.c (function config_parse).

It returns false when the line is non-empty and contains spaces. I guess it fails because it expects a valid "argv" string.

As Glib is already a dependency, I would suggest using g_strstrip.

Assignee
Assign to
Time tracking