Commit 033b73b6 authored by Guilherme Becker Agge's avatar Guilherme Becker Agge
Browse files

SCRUM#608: Change the configuration script call to the new path

parent e98aee36
Pipeline #18088 failed with stages
in 5 minutes and 33 seconds
...@@ -23,12 +23,9 @@ ...@@ -23,12 +23,9 @@
set -e set -e
# Enable the extension # Enable the extension
# if it is already enable will not crash # if it is already enabled it will not crash
gnome-shell-extension-tool -e le-inep-bar@c3sl.ufpr.br || true gnome-shell-extension-tool -e le-inep-bar@c3sl.ufpr.br || true
if [ -z "$NO_DBUS" ];then echo "Installation finished. Reset your system and enable the extension for it to work."
gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Extensions.ReloadExtension 'le-inep-bar@c3sl.ufpr.br'
fi
echo "Installation finished."
#DEBHELPER# #DEBHELPER#
exit 0 exit 0
...@@ -36,7 +36,7 @@ function getSchool() { ...@@ -36,7 +36,7 @@ function getSchool() {
inep = GLib.spawn_command_line_sync(getInep)[1].toString(); inep = GLib.spawn_command_line_sync(getInep)[1].toString();
// Removes unnecessary spaces // Removes unnecessary spaces
inep = inep.trim(); inep = inep.trim();
// Gets the school name if it's configured // Gets the school name if it's configured
if (inep!='') { if (inep!='') {
color = 'white'; // Change text color color = 'white'; // Change text color
var getZone = 'grep -w '+inep+' /etc/le-proinfodata/le.zone'; var getZone = 'grep -w '+inep+' /etc/le-proinfodata/le.zone';
...@@ -86,7 +86,7 @@ function init() { ...@@ -86,7 +86,7 @@ function init() {
xInfo=global.get_pointer()[0]; xInfo=global.get_pointer()[0];
// Grants the infobox is drawn inside the screen // Grants the infobox is drawn inside the screen
var screen = Main.layoutManager.primaryMonitor; var screen = Main.layoutManager.primaryMonitor;
if (xInfo+infoBox.width>screen.width) if (xInfo+infoBox.width>screen.width)
xInfo -= xInfo+infoBox.width - screen.width; xInfo -= xInfo+infoBox.width - screen.width;
infoBox.set_position(xInfo, Main.panel._rightBox.height); infoBox.set_position(xInfo, Main.panel._rightBox.height);
infoBox.show(); infoBox.show();
...@@ -112,7 +112,7 @@ function disable() { ...@@ -112,7 +112,7 @@ function disable() {
Main.panel._rightBox.remove_child(button); Main.panel._rightBox.remove_child(button);
} }
// Sets up DBus interface to refresh the name after configuration // Sets up DBus interface to refresh the name after configuration
const DBusInterface = '<node>'+ const DBusInterface = '<node>'+
' <interface name="br.ufpr.c3sl.inepbar">'+ ' <interface name="br.ufpr.c3sl.inepbar">'+
' <method name="refresh">'+ ' <method name="refresh">'+
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment