Añadir programas a la topbar de Unity
Guardar un archivo con nombre whitelist
#!/bin/bash SCHEMA="com.canonical.Unity.Panel" OBJECT="systray-whitelist" APP="$1" if [ ! "$(gsettings get $SCHEMA $OBJECT 2>/dev/null || echo FALSE)" = "FALSE" ]; then echo "Whitelisting $APP to work around flawed distribution design.." OBJARRAY=$(gsettings get $SCHEMA $OBJECT | sed -s -e "s#\['##g" -e "s#', '# #g" -e "s#'\]##g") if [[ "${OBJARRAY[@]}" =~ "$APP" ]]; then echo "$APP already whitelisted, skipping" else OBJARRAY=("${OBJARRAY[@]}" $APP) OBJARRAY=$(echo ${OBJARRAY[@]} | sed -s -e "s# #', '#g") OBJSET="['"$OBJARRAY"']" gsettings set $SCHEMA $OBJECT "$OBJSET" fi else echo "This is not a Canonical \"designed\" product." fi
Darle permisos de ejecución
sudo chmod 755 whitelist
y añadir al whitelist de forma sencilla
./whitelist nombre-del-programa
http://www.fewt.com/2011/03/whitelist-utility-script-to-allow-apps.html