This file is indexed.

/usr/bin/remuco-report is in remuco-base 0.9.6-2.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/bin/sh

# =============================================================================
#
#    Remuco - A remote control system for media players.
#    Copyright (C) 2006-2010 by the Remuco team, see AUTHORS.
#
#    This file is part of Remuco.
#
#    Remuco is free software: you can redistribute it and/or modify
#    it under the terms of the GNU General Public License as published by
#    the Free Software Foundation, either version 3 of the License, or
#    (at your option) any later version.
#
#    Remuco is distributed in the hope that it will be useful,
#    but WITHOUT ANY WARRANTY; without even the implied warranty of
#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
#    GNU General Public License for more details.
#
#    You should have received a copy of the GNU General Public License
#    along with Remuco.  If not, see <http://www.gnu.org/licenses/>.
#
# =============================================================================

# -----------------------------------------------------------------------------
# functions
# -----------------------------------------------------------------------------

message() {
	MPID=""
	if [ "$UI" = "ZENI" ] ; then
		if [ -z "$2" ] ; then
			zenity --info --title="Remuco Report" --text="$1"
		else
			zenity --info --title="Remuco Report" --text="$1" &
			MPID=$!
		fi
	elif [ "$UI" = "KDIA" ] ; then
		if [ -z "$2" ] ; then
			kdialog --title="Remuco Report" --msgbox="$1" 
		else
			kdialog --title="Remuco Report" --msgbox="$1" &
			MPID=$! 
		fi
	else
		echo $1
		echo
	fi
	
}

# -----------------------------------------------------------------------------
# constants
# -----------------------------------------------------------------------------

DEVICE_FILE="${XDG_CACHE_HOME:-$HOME/.cache}/remuco/devices"

if [ -n "`which zenity`" ] ; then
	UI="ZENI"
elif [ -n "`which kdialog`" ] ; then
	UI="KDIA"
else
	UI="TERM"
fi

#UI="ZENI"

# -----------------------------------------------------------------------------
# here we go
# -----------------------------------------------------------------------------

DATA=`python -m remuco.report dump`

MSG_NO_DATA=\
"Until now no client devices have been logged on this computer. There is "\
"nothing to report.\n\nPlease try again later, once a Remuco client has "\
"connected to this computer. Thanks!"

if [ -z "$DATA" ] ; then
	message "$MSG_NO_DATA"
	exit
fi

MSG_INTRO=\
"This tool sends the names of seen Remuco client devices to "\
"remuco.sourceforge.net. It is a kind of survey to compile a list of Remuco "\
"compatible devices.\n\nTHE FOLLOWING INFORMATION WILL BE SUBMITTED:"

if [ "$UI" = "ZENI" ] ; then
	TEXT="$MSG_INTRO\n\n$DATA\n\nPress OK to submit this report data now."
	zenity --question --title="Remuco Report" --text="$TEXT"
	[ $? = 0 ] || exit
elif [ "$UI" = "KDIA" ] ; then
	TEXT="$MSG_INTRO\n\n$DATA\n\nDo you want to submit this data now?"
	kdialog --title "Remuco Report" --yesno "$TEXT"
	[ $? = 0 ] || exit
else
	echo "===================================================================="
	echo "$MSG_INTRO"
	echo
	echo "$DATA"
	echo
	echo "Do you want to submit this data now? [Y/n]"
	read REPLY
	[ -z "$REPLY" -o "$REPLY" = "Y" -o "$REPLY" = "y" -o "$REPLY" = "yes" ] || exit
fi

message "Submitting data ...\n\nPlease stand by." "sub"

# send data
python -m remuco.report send 2>&1
OK=$?

echo

# kill progress dialog
[ -z "$MPID" ] || kill $MPID > /dev/null 2>&1

MSG_SUCCESS=\
"Successfully submitted the device information.\n\nThank you for your "\
"contribution! Please run this tool again, once a new client device has "\
"connected."

MSG_FAILED=\
"Submitting the data failed. Please try again later.\n\nIf you run this tool "\
"in a terminal, you'll see some error output."

MSG_FAILED_T1=\
"Submitting the data failed. Please inspect the error output and/or try "\
"again later."

if [ $OK != 0 ] ; then
	if [ -t 1 ] ; then
		message "$MSG_FAILED_T1" 
	else
		message "$MSG_FAILED"
	fi
	exit 1
else
	message "$MSG_SUCCESS"
fi