Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Another method of disabling the GUI at startup' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another method of disabling the GUI at startup
Authored by: snark on Jun 12, '03 12:06:30PM

You've just created an invalid plist file: plists are supposed to contain valid XML and you are lucky that the parser that analyzes this file during the boot process does not barf... and leave you with a nonfunctional system.

The '>' has a special meaning to XML. So to play it safe, instead of

 <string>>console</string>
it should read
 <string>&gt;console</string>
where '&gt;' is the entity code for the '>' character



[ Reply to This | # ]
Another method of disabling the GUI at startup
Authored by: lazyindieboy on Jul 14, '03 05:08:56AM

Well I tried this, and Im not necessarily a master at Unix. Im tryin to get back to the gui, so i can sign in normally, or at least edit the script again to get it back. But im not too sure how to do either, i press ctrl + d at login: but it just brings me back, same with typing exit. help me out



[ Reply to This | # ]
Another method of disabling the GUI at startup
Authored by: Robo-X on Jun 04, '04 06:33:31AM

Edit the file again and remove the lines you added. Then either type exit or reboot. It should then show the normal Login Window.

//Rob



[ Reply to This | # ]
Another method of disabling the GUI at startup
Authored by: mysidia on May 02, '09 09:48:21AM
This is completely incorrect. In fact <string>>console</string>
is well-formed XML. An XML parser that rejects or "barfs" on that input is not a standards compliant XML parser. Less-than and Amphersand must be escaped. The greater than symbol does not NEED to be escaped, except when part of a ]]> sequence.

The relevant portion of the XML standard is section 2.4
http://www.w3.org/TR/2008/REC-xml-20081126/#syntax
"
The ampersand character (&) and the left angle bracket (<) must not appear in their literal form, except when used as markup delimiters, or within a comment, a processing instruction, or a CDATA section.

The right angle bracket (>) MAY be represented using the string " &gt; ", and must, for compatibility, be escaped using either " &gt; " or a character reference when it appears in the string " ]]> " in content, when that string is not marking the end of a CDATA section.
"

[ Reply to This | # ]