This file is indexed.

/usr/share/anyremote/cfg-data/Server-mode/gmusicbrowser.cfg is in anyremote-data 6.3.2-1.

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

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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
%
% anyremote configuration file for Gmusicbrowser (http://squentin.free.fr/gmusicbrowser/gmusicbrowser.html) 
% management (Server-mode)
%
% prerequisites: amixer/pactl utility
%

% STATUS stable
% XTEST no
% SOUND mixer
% ENV no
% DEF_PLAYER   
% ALL_IN_ONE
% MEDIACENTER audio

GuiAppName=Gmusicbrowser
GuiAppBinary=gmusicbrowser
GuiAppRun=echo 'P=`ps -ef|grep gmusicbrowser|grep -v grep|grep -v anyremote|grep -v nedit`; if [ "x$P" = "x" ]; then echo NOK; else echo OK; fi'|sh -s
GuiAppIcon=gmusicbrowser.png
GuiAppType=Application
GuiAppProtocols=Server
GuiAppDesc=An open-source jukebox for large collections of mp3/ogg/flac/mpc files, written in perl.

[Protocol]=Server

(Init)=\
	Include($(CfgDir)/Utils/aliases-server.cfg);\
	Macro(SETUP_DEFAULT_MIXER);\
	Macro(TEST_QDBUS);\
 	Make(var,player_name,by_value,Gmusicbrowser);\
	Include($(CfgDir)/Utils/aliases-server-player.cfg);\
	Make(var,gmusicbrowser_opt,R=`gmusicbrowser -h|grep -- -remotecmd`;if [ "x$R" = "x" ]; then echo "-cmd"; else echo "-remotecmd"; fi);\
	Make(var,gmusicbrowser_metadata,by_value,\
	         qdbus org.mpris.MediaPlayer2.gmusicbrowser /org/mpris/MediaPlayer2 \
		       org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player Metadata);\
	Make(var,cover_size,by_value,);\
	Make(var,gmusicbrowser_layout,\
	     V=`$(CfgDir)/Utils/registry.sh $(TmpDir) get gmusicbrowser_layout`;\
	     if [ "x$V" = "x" ]; then echo "5x1"; else echo $V; fi);

(Exit)=\
	Exec($(CfgDir)/Utils/registry.sh $(TmpDir) set gmusicbrowser_layout $(gmusicbrowser_layout));

(Connect)=\
	Make(mode,gmusicbrowser_$(gmusicbrowser_layout));


[Mode]=gmusicbrowser_general

% Volume control and 0-9,*,# assignments by Utils/aliases-server-player.cfg
%1=Exec(gmusicbrowser $(gmusicbrowser_opt) DecVolume);
%2=Exec(gmusicbrowser $(gmusicbrowser_opt) TogMute); -- this do not works
%3=Exec(gmusicbrowser $(gmusicbrowser_opt) IncVolume);

PLAY_ONLY=\
	Exec(gmusicbrowser $(gmusicbrowser_opt) PlayPause 2> /dev/null);

PLAY=\
	Macro(PLAY_ONLY);\
	Macro(GMUSICBROWSER_START);

RWD=\
	Exec(gmusicbrowser $(gmusicbrowser_opt) "Rewind 10" 2> /dev/null);
	
FF=\
	Exec(gmusicbrowser $(gmusicbrowser_opt) "Forward 10" 2> /dev/null);

PREV=\
	Exec(gmusicbrowser $(gmusicbrowser_opt) PrevSongInPlaylist 2> /dev/null);\
	Macro(GMUSICBROWSER_TITLE);

STOP=\
	Timer(GMUSICBROWSER_TITLE,cancel);\
	Exec(gmusicbrowser $(gmusicbrowser_opt) Stop 2> /dev/null);
	
NEXT=\
	Exec(gmusicbrowser $(gmusicbrowser_opt) NextSongInPlaylist 2> /dev/null);\
	Macro(GMUSICBROWSER_TITLE);

PAUSE=\
	Exec(gmusicbrowser $(gmusicbrowser_opt) PlayPause 2> /dev/null);

RUN_IF_NEED=\
	Exec(P=`ps -ef|grep gmusicbrowser|grep -v grep|grep -v anyremote|grep -v edit`; \
	     if [ "x$P" = "x" ]; then gmusicbrowser 2> /dev/null & fi)

RUN_OR_QUIT=\
	Exec(P=`ps -ef|grep gmusicbrowser|grep -v grep|grep -v anyremote|grep -v edit`; \
	     if [ "x$P" = "x" ]; then gmusicbrowser  2> /dev/null & else gmusicbrowser $(gmusicbrowser_opt) Quit; fi);

APP_QUIT=\
	Exec(gmusicbrowser $(gmusicbrowser_opt) Quit 2> /dev/null)

Repeat=\
	Make(var,repeat_val,\
	     P=`qdbus org.mpris.MediaPlayer2.gmusicbrowser /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player LoopStatus`;\
	     if [ "x$P" = "xNone" ]; then echo Playlist; else echo None; fi);\
        Exec(qdbus org.mpris.MediaPlayer2.gmusicbrowser /org/mpris/MediaPlayer2 org.mpris.MediaPlayer2.Player.LoopStatus $(repeat_val));

GMUSICBROWSER_TITLE_GENERAL=\
        Make(var,gmusicbrowser_artist,$(gmusicbrowser_metadata)|grep "artist:"|sed 's/.*artist: //');\
        Make(var,gmusicbrowser_album,$(gmusicbrowser_metadata)|grep "album:"|sed 's/.*album: //');\
        Make(var,gmusicbrowser_title,$(gmusicbrowser_metadata)|grep "title:"|sed 's/.*title: //');\
	Set(title,$(gmusicbrowser_artist) - $(gmusicbrowser_album));\
	Set(status,$(gmusicbrowser_title));

GMUSICBROWSER_STATUS=\
	Make(var,gmusicbrowser_status,qdbus org.mpris.MediaPlayer2.gmusicbrowser \
	             /org/mpris/MediaPlayer2 org.freedesktop.DBus.Properties.Get org.mpris.MediaPlayer2.Player PlaybackStatus);

GMUSICBROWSER_CHECK_TIMER=\
	Macro(GMUSICBROWSER_STATUS);\
	Make(var,timer_action,if [ "x$(gmusicbrowser_status)" = "xPlaying" ]; \
	                      then echo GMUSICBROWSER_START; else echo GMUSICBROWSER_CANCEL; fi);\
	Macro($(timer_action));

GMUSICBROWSER_CANCEL=\
	Timer(GMUSICBROWSER_TITLE,cancel);

GMUSICBROWSER_START=\
	Macro(GMUSICBROWSER_TITLE);\
	Timer(GMUSICBROWSER_TITLE,$(UpdateTimeout),0);

APP_PLAY_STATUS=\
	Macro(GMUSICBROWSER_STATUS);\
	Make(var,app_status,if [ "x$(gmusicbrowser_status)" = "xPlaying" ]; then echo playing; else echo paused; fi);

Layout 3x4=\
	Make(mode,gmusicbrowser_3x4);

Layout 7x1=\
	Make(mode,gmusicbrowser_7x1);

Layout 5x1=\
	Make(mode,gmusicbrowser_5x1);

[ModeEnd]

[Mode]=gmusicbrowser_3x4 : gmusicbrowser_general, default_player

% (EnterMode) by Utils/aliases-server-player.cfg

APP_MENU=\
	Set(menu,replace,Repeat,Layout 7x1,Layout 5x1,PowerMgmt);\
	Macro(ALLIN1MENU);\
	Macro(MEDIACENTER_MENU);

APP_POST_SETUP=\
	Make(var,gmusicbrowser_layout,by_value,3x4);\
	Macro(GMUSICBROWSER_CHECK_TIMER);

% PowerMgmt by Utils/aliases-server.cfg

GMUSICBROWSER_TITLE=\
	Macro(GMUSICBROWSER_TITLE_GENERAL);

[ModeEnd]

[Mode]=gmusicbrowser_cover

GMUSICBROWSER_TITLE=\
	Macro(GMUSICBROWSER_TITLE_GENERAL);\
	Macro(APP_COVER, if [ "x$(cover_size)" = "x" ]; then echo 1; else echo 0; fi);

APP_COVER=\
	Make(var,media_file,$(gmusicbrowser_metadata)|\
		       grep "url:"|sed "s/.*\/\/\//\//;s/'/'\\\''/g;s/\//\'\/\'/g;s/$/\'/g;s/^'\//\//;s/%20/ /g");\
	Macro(DEFAULT_COVER);

[ModeEnd]

[Mode]=gmusicbrowser_7x1 : gmusicbrowser_general, default_player_7x1, gmusicbrowser_cover

% (EnterMode) by Utils/aliases-server-player.cfg
% Mute, Next Cover,Previous Cover,Update Cover, PowerMgmt by Utils/aliases-server-player.cfg
APP_MENU=\
	Set(menu,replace,Repeat,Mute,Next Cover,Previous Cover,Update Cover,Layout 3x4,Layout 5x1,Help,PowerMgmt);\
	Macro(ALLIN1MENU);\
	Macro(MEDIACENTER_MENU);

APP_POST_SETUP=\
	Make(var,gmusicbrowser_layout,by_value,7x1);\
	Macro(GMUSICBROWSER_CHECK_TIMER);

[ModeEnd]

[Mode]=gmusicbrowser_5x1 : gmusicbrowser_general, default_player_5x1, gmusicbrowser_cover

% (EnterMode) by Utils/aliases-server-player.cfg
% Mute, Next Cover,Previous Cover,Update Cover, PowerMgmt by Utils/aliases-server-player.cfg
APP_MENU=\
	Set(menu,replace,Repeat,Mute,Next Cover,Previous Cover,Update Cover,Layout 3x4,Layout 7x1,Help,PowerMgmt);\
	Macro(ALLIN1MENU);\
	Macro(MEDIACENTER_MENU);

APP_POST_SETUP=\
	Make(var,gmusicbrowser_layout,by_value,5x1);

APP_TITLE=\
	Macro(GMUSICBROWSER_TITLE);

PLAY=\
	Macro(PLAY_ONLY);

[ModeEnd]

[End]