| Server IP : 185.11.201.71 / Your IP : 192.168.7.18 Web Server : Apache/2.4.29 (Ubuntu) System : Linux tech-virtual-machine 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64 User : tech ( 1000) PHP Version : 7.4.28 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /usr/share/bug/ |
Upload File : |
#!/bin/bash
REPORTBUG_VERSION=$(dpkg-query -f '${source:Version}' -W reportbug)
HAVE_ATTACHMENTS=$(dpkg --compare-versions "$REPORTBUG_VERSION" ge "6.5.0" && echo yes || echo no)
function include_file() {
while [ -n "$1" ] ; do
if [ ! -f "$1" ] ; then
# file doesn't exist, just note that fact
echo "File '$1' does not exist" >&3
echo >&3
elif [ $HAVE_ATTACHMENTS = yes ] ; then
echo "-- BEGIN ATTACHMENTS --" >&3
echo $1 >&3
echo "-- END ATTACHMENTS --" >&3
else
echo "${1}:" >&3
cat "$1" >&3
echo >&3
fi
shift
done
}
function include_command() {
desc=$(echo "$@" | sed -e 's/[^[:alnum:]:_-]\+/_/g')
tmp=$(mktemp --tmpdir bug-pulseaudio-${desc}.XXXXXX)
"$@" &>$tmp
include_file $tmp
# delete cruft if possible
# for attachments we can't because it is not known when reportbug exits
if [ $HAVE_ATTACHMENTS = no ] ; then
rm $tmp
fi
}
# to see if we have a systemwide pulseaudio
include_file /etc/default/pulseaudio
# pulseaudio configuration
include_file /etc/pulse/client.conf /etc/pulse/daemon.conf /etc/pulse/default.pa /etc/pulse/system.pa
# Get alsa devices if possible
if which aplay &>/dev/null ; then
include_command aplay -L
fi
include_command pactl list
include_command pactl info