[Xfce-bugs] [Bug 8150] [PATCH] Fix for simple_parse_line when ] is used in the line.
bugzilla-daemon at xfce.org
bugzilla-daemon at xfce.org
Fri Nov 18 13:54:52 CET 2011
https://bugzilla.xfce.org/show_bug.cgi?id=8150
--- Comment #2 from Eric <b9xs0dtwmy at hotmail.com> 2011-11-18 13:54:52 CET ---
Sorry, I didn't include the link to the bug in xfdesktop:
https://bugzilla.xfce.org/show_bug.cgi?id=2975
Basically xfdesktop uses xfce4util to create an rc file usually located at
~/.config/xfce4/desktop/icons.screen#.rc In that file it stores the filename as
the group name and the icon's position as values of that. The way xfce4util is
currently written, it will return the after the first ] is located, but that
will fail if the filename is something like file[1].c since the rc file will
be:
[file[1].c]
row=8
col=11
Which means simple_parse_line would return "file[1" and not correctly match
the entry. The patch I created fixes it to grab the last ] and ignore any text
after that, in the event there's a comment embedded at the end of the line.
Hopefully, this helps clarify things. If you need me to clean up the patch or
need more info, let me know.
--
Configure bugmail: https://bugzilla.xfce.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Xfce-bugs
mailing list