/usr/share/anyremote/cfg-data/Server-mode/template-pix-viewer.cfg is in anyremote-data 6.5-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 | %
% anyremote template configuration file for picture viewer management. (Server-mode)
%
% STATUS testing
% XTEST no
% SOUND no
% ENV no
% FBROWSER v.3i
% DEF_PIX_VIEWER
% ALL_IN_ONE
% MEDIACENTER photo
GuiAppName=Picture Viewer
GuiAppBinary=pixviewer.exe
GuiAppRun=P=`ps -ef|grep pixviewer.exe|grep -v grep|grep -v anyremote|grep -v edit`; if [ "x$P" = "x" ]; then echo NOK; else echo OK; fi
GuiAppIcon=some_app.png
GuiAppType=Application
GuiAppProtocols=Server
GuiAppDesc=anyRemote template configuration file for picture viewer management
[Protocol]=Server
(Init)=\
Include($(CfgDir)/Utils/aliases-server.cfg);\
Include($(CfgDir)/Utils/aliases-server-fbrowser-v3i.cfg);\
Macro(FBROWSER_IC_INIT);\
Include($(CfgDir)/Utils/aliases-server-pix-viewer.cfg);\
Make(var,app_name,by_value,Picture Viewer);\
Make(var,open_file,by_value,);\
Make(var,app_manage_mode,by_value,pixviewer_manage);
(Exit)=\
Macro(FBROWSER_IC_EXIT);
(Connect)=\
Make(mode,pixviewer_init);
[Mode]=pixviewer_init : default_pixviewer_init
APP_IS_RUN=\
Make(var,app_run,ps -ef|grep pixviewer.exe|grep -v grep|grep -v anyremote|grep -v edit|head -1|wc -l);
[ModeEnd]
[Mode]=pixviewer_manage : default_pixviewer
% (EnterMode) by Utils/aliases-server-pix-viewer.cfg
APP_SETUP=\
Make(none);
APP_START_IF=\
Make(var,app_run,ps -ef|grep pixviewer.exe|grep -v grep|grep -v anyremote|grep -v edit|head -1|wc -l);\
Exec(if [ "x$(app_run)" = "x0" ]; then \
cd "$(fbrowser_dir)";pixviewer.exe $(open_file)& \
fi 2> /dev/null);
% Application window should be present in output of "wmctrl -l"
APP_RAISE=\
Exec(echo "Raise Application Window");\
Exec($(CfgDir)/Utils/run-or-switch-to.sh -switch pixviewer.exe);
APP_QUIT=\
Exec(echo "Kill application");
APP_FULLSCREEN=\
Exec(echo "Fullscreen Application Window");
APP_MENU=\
Set(menu,replace,Add,Some,Custom,Items,PowerMgmt);\
Macro(ALLIN1MENU);\
Macro(MEDIACENTER_MENU);
%PIX_FILE_BROWSER by Utils/aliases-server-pix-viewer.cfg
PIX_PREV =Exec(echo "Previous Picture");
PIX_NEXT =Exec(echo "Next Picture");
PIX_FIRST =Exec(echo "First Picture");
PIX_LAST =Exec(echo "Last Picture");
PIX_ZOOM_IN =Exec(echo "Zoom In");
PIX_ZOOM_OUT=Exec(echo "Zoom Out");
PIX_FIT =Exec(echo "Zoom To Fit");
PIX_ROTATE =Exec(echo "Rotate");
% PowerMgmt by Utils/aliases-server.cfg
Add=\
Exec(echo "Custom Action 1");
Some=\
Exec(echo "Custom Action 2");
Custom=\
Exec(echo "Custom Action 3");
Items=\
Exec(echo "Custom Action 4");
[ModeEnd]
[End]
|