Skip to content
Snippets Groups Projects
Commit 53105982 authored by Diego Giovane Pasqualin's avatar Diego Giovane Pasqualin
Browse files

le-proinfodata: Fix ask INEP dialog not opening sometimes

parent e3290605
No related merge requests found
Package: le-proinfodata
Version: 1.2.36
Version: 1.2.37
Maintainer: <proinfodata@c3sl.ufpr.br>
Architecture: i386
Section: main
......
......@@ -52,17 +52,25 @@ function disable_gnome() {
local P_EDUBAR_POS=""
local P_GPANEL=""
while [[ -z "$P_EDUBAR" ]] || [[ -z "$P_GPANEL" ]] || [[ -z "$P_EDUBAR_POS" ]]; do
while true; do
# Get PID
P_EDUBAR_POS=$(ps aux | grep "le-edubar_position.sh" | awk '{print $2}')
P_EDUBAR=$(pgrep le-edubar)
P_EDUBAR_POS="$(ps aux | grep "le-edubar_position.sh" | grep -v "grep" \
| awk '{print $2}')"
P_GPANEL=$(pgrep gnome-panel)
P_EDUBAR=$(pgrep -f "le-edubar -c")
if [[ -z "$P_GPANEL" ]] ||
[[ -z "$P_EDUBAR_POS" ]] ||
[[ -z "$P_EDUBAR" ]]; then
sleep 1
else
break
fi
done
# Disable Edubar and Panel
kill $P_EDUBAR
kill -stop $P_EDUBAR_POS $P_GPANEL
kill $P_EDUBAR
}
# Enable user interaction with gnome panel
......@@ -99,8 +107,7 @@ if dpkg --get-selections "ubiquity-le" | grep -q 'install$' ||
exit 0
fi
# --------------------------------------------------------------------
# Delay for not happen overlay window
sleep 3
# Check whether the computer is running on a the multiterminal
if dpkg --get-selections "le-multiterminal" | grep -q 'install$'; then
# In the first call (lightdm) in multiterminal this is script must leave, to be called again after.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment