Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
le-inep-bar
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
le6
le-inep-bar
Commits
033b73b6
Commit
033b73b6
authored
Oct 18, 2018
by
Guilherme Becker Agge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
SCRUM#608
: Change the configuration script call to the new path
parent
e98aee36
Pipeline
#18088
failed with stages
in 5 minutes and 33 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
8 deletions
+5
-8
package/debian/le-inep-bar.postinst
package/debian/le-inep-bar.postinst
+2
-5
package/le-inep-bar@c3sl.ufpr.br/extension.js
package/le-inep-bar@c3sl.ufpr.br/extension.js
+3
-3
No files found.
package/debian/le-inep-bar.postinst
View file @
033b73b6
...
...
@@ -23,12 +23,9 @@
set
-e
# Enable the extension
# if it is already enable will not crash
# if it is already enable
d it
will not crash
gnome-shell-extension-tool
-e
le-inep-bar@c3sl.ufpr.br
||
true
if
[
-z
"
$NO_DBUS
"
]
;
then
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."
echo
"Installation finished. Reset your system and enable the extension for it to work."
#DEBHELPER#
exit
0
package/le-inep-bar@c3sl.ufpr.br/extension.js
View file @
033b73b6
...
...
@@ -36,7 +36,7 @@ function getSchool() {
inep
=
GLib
.
spawn_command_line_sync
(
getInep
)[
1
].
toString
();
// Removes unnecessary spaces
inep
=
inep
.
trim
();
// Gets the school name if it's configured
// Gets the school name if it's configured
if
(
inep
!=
''
)
{
color
=
'
white
'
;
// Change text color
var
getZone
=
'
grep -w
'
+
inep
+
'
/etc/le-proinfodata/le.zone
'
;
...
...
@@ -86,7 +86,7 @@ function init() {
xInfo
=
global
.
get_pointer
()[
0
];
// Grants the infobox is drawn inside the screen
var
screen
=
Main
.
layoutManager
.
primaryMonitor
;
if
(
xInfo
+
infoBox
.
width
>
screen
.
width
)
if
(
xInfo
+
infoBox
.
width
>
screen
.
width
)
xInfo
-=
xInfo
+
infoBox
.
width
-
screen
.
width
;
infoBox
.
set_position
(
xInfo
,
Main
.
panel
.
_rightBox
.
height
);
infoBox
.
show
();
...
...
@@ -112,7 +112,7 @@ function disable() {
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>
'
+
'
<interface name="br.ufpr.c3sl.inepbar">
'
+
'
<method name="refresh">
'
+
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment