The SignagePlayer executable in my installation was located in /opt/SignagePlayer/bin/SignagePlayer
I replaced the actual executable with a script of mine which gets autostarted instead of the player.
I moved the actual executable of the player into a different file.
The script once started, starts the actual player (which is now called SignagePlayerApp) and then uses a linux program which is called "xdotool" that allows you to perform all kinds of different options on open windows using the shell.
the following retrieves the window id of the player window by its title, which is "Signage Player"
xdotool search --onlyvisible --name "Signage Player"
the id is stored in a variable, if the player was not yet launched (so the window did not exist when the "search" was run) the script waits 1 second and then tries again and again until it finally finds the window
then the following line is executed on the id of the window to give it focus and bring it in front of the gnome panel
xdotool windowactivate $windowId
the entire script can be found here:
#!/bin/bash
#This script belongs into the signage player install directory
#ie /opt/SignagePlayer/bin
#start the player
sudo /opt/SignagePlayer/bin/SignagePlayerApp &
#wait for the window to spawn
while : ; do
windowId=`xdotool search --onlyvisible --name "Signage Player"`
if [ -n "$windowId" ]
then
#once spawned give it focus and exit the script
xdotool windowactivate $windowId
break
else
#if it is not yet spawned wait 1 sec until checking again
sleep 1
fi
done