[Bugs] #1462 UNSP: remove ~/.sugar/debug
Sugar Labs Bugs
bugtracker-noreply at sugarlabs.org
Tue Oct 6 14:16:26 EDT 2009
#1462: remove ~/.sugar/debug
------------------------------------------+---------------------------------
Reporter: sascha_silbe | Owner: tomeu
Type: task | Status: new
Priority: Unspecified by Maintainer | Milestone: 0.88
Component: sugar | Version: Git as of bugdate
Severity: Unspecified | Keywords:
Distribution: Unspecified | Status_field: New
------------------------------------------+---------------------------------
Description changed by sascha_silbe:
Old description:
> {{{~/.sugar/debug}}} currently gets sourced (interpreted) as a shell
> script, which by definition means using a shell to do it.
> To get debug logs of our DBus services (data store, presence service),
> we'd need to source {{{~/.sugar/debug}}} before starting dbus-launch. For
> "native" logins (not sugar-emulator) that's out of our control as dbus-
> launch is usually started by some distro script before running sugar. So
> {{{~/.sugar/debug}}} is currently of very limited use (before #1440 was
> fixed it was the same way for sugar-emulator as well).
>
> For the current purpose (setting the log level) easier methods exist
> (regular Sugar config mechanism, system-provided mechanisms for setting
> environment variables) that don't require sugar to use a shell and work
> in all cases. By using the Sugar config mechanism and adding a setting to
> the Control Panel we could even let "normal" users enable debug logs
> (they don't have to type magic incantations in Terminal and use an editor
> they're not comfortable with).
New description:
{{{~/.sugar/debug}}} currently gets sourced (interpreted) as a shell
script, which by definition means using a shell to do it.
To get debug logs of our DBus services (data store, presence service),
we'd need to source {{{~/.sugar/debug}}} before starting dbus-launch. For
"native" logins (not sugar-emulator) that's out of our control as dbus-
launch is usually started by some distro script before running sugar. So
{{{~/.sugar/debug}}} is currently of very limited use (before #927 was
fixed it was the same way for sugar-emulator as well).
For the current purpose (setting the log level) easier methods exist
(regular Sugar config mechanism, system-provided mechanisms for setting
environment variables) that don't require sugar to use a shell and work in
all cases. By using the Sugar config mechanism and adding a setting to the
Control Panel we could even let "normal" users enable debug logs (they
don't have to type magic incantations in Terminal and use an editor
they're not comfortable with).
--
--
Ticket URL: <http://bugs.sugarlabs.org/ticket/1462#comment:2>
Sugar Labs <http://sugarlabs.org/>
Sugar Labs bug tracking system
More information about the Bugs
mailing list