Opened 14 years ago

Closed 10 years ago

Last modified 10 years ago

#1462 closed task (wontfix)

remove ~/.sugar/debug

Reported by: sascha_silbe Owned by: tomeu
Priority: Unspecified by Maintainer Milestone:
Component: Sugar Version: Git as of bugdate
Severity: Unspecified Keywords:
Cc: alsroot Distribution/OS: Unspecified
Bug Status: New

Description (last modified by sascha_silbe)

~/.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).

Change History (5)

comment:1 Changed 14 years ago by sascha_silbe

  • Cc alsroot added

comment:2 Changed 14 years ago by sascha_silbe

  • Description modified (diff)

comment:3 Changed 14 years ago by sascha_silbe

  • Milestone changed from 0.88 to 0.90

Too late for 0.88.

comment:4 Changed 10 years ago by dnarvaez

  • Resolution set to wontfix
  • Status changed from new to closed

I don't think we should have a user visible pref for this. The current stuff is not great but I'd say good enough. Logs for dbus services is a complicated issue, which even GNOME didn't solve.

comment:5 Changed 10 years ago by dnarvaez

  • Milestone 0.90 deleted

Milestone 0.90 deleted

Note: See TracTickets for help on using tickets.