Comment 0 for bug 1226094

Revision history for this message
LaƩrcio de Sousa (lbssousa) wrote : epotes-client relies in /lib/lsb/init-functions, which may not provide the desired functionality in non-Debian-based distros

Current epoptes-client main script sources /lib/lsb/init-functions, which provide logging functions "log_begin_msg()" and "log_end_msg()" on Debian-based distros.

However, openSUSE 12.3's /lib/lsb/init-functions doesn't provide these functions. Instead, it provides "log_success_msg()", "log_warning_msg()" and "log_failure_msg()".

Moreover, it sources another openSUSE-specific config file named "/etc/rc.status", which exports LC_ALL=POSIX. This will set LC_ALL=POSIX in the environment of any command executed by Epoptes' execute dialog, which can lead to applications being opened in english, instead of user's default locale.

So, before sourcing /lib/lsb/init-functions, epoptes-client should check if distro is Debian-based (check for /etc/debian_version?). If sourcing /lib/lsb/init-functions is still desirable in openSUSE, please notice that

- the logging functions are different (see above),
- you should explicitly source file /etc/profile.d/lang.sh to get rid of LC_ALL, if its value is different of $LANG.