Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified host/bins/cfc-0.1.0-x64.deb
Binary file not shown.
26 changes: 20 additions & 6 deletions host/src/pack/dpkg/etc/rc.civ
Original file line number Diff line number Diff line change
@@ -1,16 +1,30 @@
#!/bin/sh -e

# Wait the ukui-session ready.
#while true
#do
# if pgrep -u `whoami` -x "ukui-session" > /dev/null
# then
# break
# else
# sleep 1
# fi
#done

while true
do
if pgrep -u `whoami` -x "ukui-session" > /dev/null
then
break
else
sleep 1
fi

num_session_process=`ps aux | grep "$USER.*gnome-session-binary.*--session=ubuntu" | grep -v grep | wc -l`
if [ $num_session_process -ge 1 ];
then
break
else
sleep 1
fi
done

sleep 5

CIV_PATH=/opt/civ/data/Release_Deb

TEMP_LOG=$HOME/.civ.log
Expand Down
8 changes: 4 additions & 4 deletions host/src/pack/dpkg/etc/rc.civ.post
Original file line number Diff line number Diff line change
Expand Up @@ -48,19 +48,19 @@ function pause_civ()

sleep 10

is_civ_ready || exit -1
#is_civ_ready || exit -1

${CIV_PATH}/scripts/stream &

# LG_B1_Client_input will be launched in rc.civ.pre
#launch_lg_input_client

/etc/sharefolder_monitor.sh &
#/etc/sharefolder_monitor.sh &

balloon_civ
#balloon_civ

/opt/lg/bin/LG_B1_Client_clipboard guestClipboard:enable=true &

pause_civ
#pause_civ

exit 0
29 changes: 22 additions & 7 deletions host/src/pack/dpkg/etc/rc.civ.pre
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
#!/bin/sh -e

#while true
#do
# if pgrep -u `whoami` -x "ukui-session" > /dev/null
# then
# break
# else
# sleep 1
# fi
#done
#sleep 10

while true
do
if pgrep -u `whoami` -x "ukui-session" > /dev/null
then
break
else
sleep 1
fi

num_session_process=`ps aux | grep "$USER.*gnome-session-binary.*--session=ubuntu" | grep -v grep | wc -l`
if [ $num_session_process -ge 1 ];
then
break
else
sleep 1
fi
done
sleep 10

sleep 5

export DISPLAY=:0
THEUSER=$(users | awk '{print $1;}')
LOGPATH=/home/$THEUSER/.userdata
Expand Down
Binary file modified host/src/pack/dpkg/opt/cfc/mwc/bin/api_test
Binary file not shown.
6 changes: 3 additions & 3 deletions host/src/pack/dpkg/opt/cfc/mwc/bin/lg_launcher.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,9 @@ if [ ! -z ${ENABLE_CIV_BALLOON} ]; then
fi

# Pause CiV
if [ -z "$(pidof mwc_launcher)" ] && [ -z "$(pidof LG_B1_Client)" ] && [ -z "$(pgrep -ax adb | grep -v "fork-server")" ]; then
/opt/cfc/mwc/bin/pause_civ.sh
fi
#if [ -z "$(pidof mwc_launcher)" ] && [ -z "$(pidof LG_B1_Client)" ] && [ -z "$(pgrep -ax adb | grep -v "fork-server")" ]; then
# /opt/cfc/mwc/bin/pause_civ.sh
#fi

exit 0

3 changes: 2 additions & 1 deletion host/src/pack/dpkg/opt/cfc/mwc/bin/loadapp_single_lg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ then
fi
/opt/cfc/mwc/bin/msg_agent localhost 3000 CLOSEAPP_LASTOPENED
else
/opt/lg/bin/LG_B1_Client -Q $1 -t $4
#/opt/lg/bin/LG_B1_Client -Q $1 -t $4
echo "Do nothing."
fi

exit 0
Expand Down
Binary file modified host/src/pack/dpkg/opt/cfc/mwc/bin/msg_agent
Binary file not shown.
Binary file modified host/src/pack/dpkg/opt/cfc/mwc/bin/mwc
Binary file not shown.
Binary file modified host/src/pack/dpkg/opt/cfc/mwc/bin/mwc_hostdaemon
Binary file not shown.
Binary file modified host/src/pack/dpkg/opt/cfc/mwc/bin/mwc_launcher
Binary file not shown.
46 changes: 46 additions & 0 deletions host/src/pack/dpkg/opt/cfc/mwc/bin/update_lunch_ubuntu.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
#!/bin/bash

sfilename=$0

if [ "x${sfilename}" == "x-bash" ]; then
sfilename=$BASE_SOURCE
fi

exec_pwd=$(cd $(dirname $sfilename);pwd)

echo "Start to update app .desktop file for Ubuntu ..."

#dir_desktop_app=${HOME}/.local/share/applications/
dir_desktop_app=${HOME}/applications

cd $dir_desktop_app
NUM_PARAMS=$#

if [[ "$NUM_PARAMS" -eq "1" ]];
then
echo "Update ubuntu launch icon for given app..."
app_pkg=$1
lunch_file="$1.desktop"
if [[ -f $lunch_file ]];
then
echo "Processing app lunch file for kylin: $lunch_file"
sed -i "s%^Name\[zh_CN\]=%Name=%g" $lunch_file
echo "Copy app .desktop file: $lunch_file to /usr/share/applications/ folder."
cp "$lunch_file" ${HOME}/.local/applications/
cd -
fi
else
echo "Update Ubuntu luanch icons in batch mode..."
lunch_files="`ls *.desktop`"
for app_desktop_file in $lunch_files
do
echo "Processing app lunch file for kylin: $app_desktop_file"
sed -i "s%^Name\[zh_CN\]=%Name=%g" $app_desktop_file

done
echo "Copy app .desktop files to ~/.local/share/applications/ folder..."
cp *.desktop ${HOME}/.local/share/applications/
cd -
fi

echo "Android app lunch icon updating done."
Binary file modified host/src/pack/dpkg/opt/cfc/mwc/lib/libkydroid.so
Binary file not shown.
62 changes: 50 additions & 12 deletions host/src/pack/pack-cfc.sh
Original file line number Diff line number Diff line change
@@ -1,14 +1,52 @@
cp ../pghost/mwc dpkg/opt/cfc/mwc/bin/mwc
cp ../pghost/mwc_hostdaemon dpkg/opt/cfc/mwc/bin/mwc_hostdaemon
cp ../pghost/mwc_launcher dpkg/opt/cfc/mwc/bin/mwc_launcher
cp ../pghost/loadapp.sh dpkg/opt/cfc/mwc/bin/loadapp.sh
cp ../pghost/killapp.sh dpkg/opt/cfc/mwc/bin/killapp.sh
cp ../pghost/closeapp.sh dpkg/opt/cfc/mwc/bin/closeapp.sh
cp ../pghost/api_test dpkg/opt/cfc/mwc/bin/api_test
cp ../pghost/libkydroid.so dpkg/opt/cfc/mwc/lib/libkydroid.so
cp ../pghost/msg_agent dpkg/opt/cfc/mwc/bin/msg_agent
cp ../pghost/kill_app_process.sh dpkg/opt/cfc/mwc/bin/kill_app_process.sh
cp ../pghost/check_android_running.sh dpkg/opt/cfc/mwc/bin/check_android_running.sh
cp ../pghost/loadapp_single_lg.sh dpkg/opt/cfc/mwc/bin/loadapp_single_lg.sh
#!/bin/bash

if [[ -f ../pghost/mwc ]];
then
cp ../pghost/mwc dpkg/opt/cfc/mwc/bin/mwc
echo "Copied mwc file for debian file packaging."
else
echo "mwc not found, please execute the source compiling first!"
fi

if [[ -f ../pghost/mwc_hostdaemon ]];
then
cp ../pghost/mwc_hostdaemon dpkg/opt/cfc/mwc/bin/mwc_hostdaemon
echo "Copied mwc_hostdaemon file for debian file packaging."
else
echo "mwc_hostdaemon not found, please execute the source compiling first!"
fi

if [[ -f ../pghost/mwc_launcher ]];
then
cp ../pghost/mwc_launcher dpkg/opt/cfc/mwc/bin/mwc_launcher
echo "Copied mwc_launcer file for debian file packagng."
else
echo "mwc_launcher not foud, please execute the source compiling first!"
fi

if [[ -f ../pghost/api_test ]];
then
cp ../pghost/api_test dpkg/opt/cfc/mwc/bin/api_test
echo "Copied api_test file for debian file packagng."
else
echo "api_test not foud, please execute the source compiling first!"
fi

if [[ -f ../pghost/libkydroid.so ]];
then
cp ../pghost/libkydroid.so dpkg/opt/cfc/mwc/lib/libkydroid.so
echo "Copied libkydroid.so file for debian file packagng."
else
echo "libkydroid.so not foud, please execute the source compiling first!"
fi

if [[ -f ../pghost/msg_agent ]];
then
cp ../pghost/msg_agent dpkg/opt/cfc/mwc/bin/msg_agent
echo "Copied msg_agent file for debian file packagng."
else
echo "msg_agent not foud, please execute the source compiling first!"
fi

dpkg -b dpkg cfc-0.1.0-x64.deb

7 changes: 0 additions & 7 deletions host/src/pghost/check_android_running.sh

This file was deleted.

14 changes: 0 additions & 14 deletions host/src/pghost/closeapp.sh

This file was deleted.

20 changes: 0 additions & 20 deletions host/src/pghost/kill_app_process.sh

This file was deleted.

14 changes: 0 additions & 14 deletions host/src/pghost/killapp.sh

This file was deleted.

16 changes: 0 additions & 16 deletions host/src/pghost/loadapp.sh

This file was deleted.

48 changes: 0 additions & 48 deletions host/src/pghost/loadapp_single_lg.sh

This file was deleted.