Ticket #1462 (new task)
|Reported by:||sascha_silbe||Owned by:||tomeu|
|Priority:||Unspecified by Maintainer||Milestone:||0.90|
|Component:||sugar||Version:||Git as of bugdate|
Description (last modified by sascha_silbe) (diff)
~/.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).