Forums

[Script] Kakao Talk

Auteur Réponses
TheBallOfAeolus Lundi 11 Novembre 2019 à 17:08
TheBallOfAeolusAnonymous

Small descrpition of the app:
KakaoTalk (Hangul: 카카오톡), or sometimes KaTalk, is a free mobile instant messaging application for smartphones with free text and free call features, operated by Kakao Corporation.
https://en.wikipedia.org/wiki/KakaoTalk

 

Script restrictions on wine and winOS:

  • I am using wine 4.19 because my default wine installation (3.0) wasn't working and I choose 4.19 because the latest.
  • The OS version is win2008 because it wasn't working with XP, it will possibly work with the rest, but I did not test it.

 

Script:
This is my first script, any feedback is welcome!

#!/bin/bash
# Date : (2019-11-11 15-30)
# Last revision : (2019-11-11 15-30)
# Distribution used to test : Ubuntu 18.04 bionic
# Author : TheBallOfAeolus
# Licence : GPLv3
# PlayOnLinux: 4.3.4

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="KakaoTalk"
WINEVERSION="4.19"
TITLE="Kakao Talk"
EDITOR="Kakao Corp."
GAME_URL="https://www.kakaocorp.com/"
AUTHOR="TheBallOfAeolus"
DOWNLOADURL="http://app.pc.kakao.com/talk/win32/KakaoTalk_Setup.exe"
OSVERSION="win2008"
SHORTCUTFILENAME="KakaoTalk.exe"
DOWNLOADEDSETUPFILE="KakaoTalk_Setup.exe"

# Initialization
POL_SetupWindow_Init

POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOADURL"
    INSTALLER="$POL_System_TmpDir/$DOWNLOADEDSETUPFILE"
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Configuration
Set_OS "winxp"

#Dependencies
POL_Call POL_Install_gdiplus
POL_Call POL_Install_msxml6
POL_Call POL_Install_riched30
POL_Call POL_Install_wmp9
POL_Call POL_Install_mono28
POL_Call POL_Install_gecko

# Installation
Set_OS "$OSVERSION"

POL_SetupWindow_message "The installer for $TITLE will now appear.\nDo not allow the installer to launch the game.\nUncheck the box to launch the game at the end of the installation.\n\nIf the game is launched from the installer, the apllication will not be installed and you have to start the process again.\n" "Uncheck the Launch Game checkbox!"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
POL_Wine_WaitExit "$TITLE"

# Create Shortcuts
POL_Shortcut "$SHORTCUTFILENAME" "$TITLE"

# Cleanup
POL_System_TmpDelete

POL_SetupWindow_Close
exit

Edité par TheBallOfAeolus

TheBallOfAeolus Mardi 12 Novembre 2019 à 14:56
TheBallOfAeolusAnonymous

I am having issues displaying hangul (Korean alphabet).
I've found several articles highlighting to install and load a specific font:

How can automate it in the playonlinux script?

Any suggestion?

Currently I am seing ▯▯▯▯ for every korean symbol.

 

TheBallOfAeolus Jeudi 14 Novembre 2019 à 17:58
TheBallOfAeolusAnonymous

I've found the solution for displaying Hangul (Korean alphabet) characters in Kakao Talk!

The solution as easy as adding:

LANG=ko_KR.EUC-KR

in the "Command to exec before running the program" of the "Miscellaneous tab".

 

The problem was finding a way to add it automatically in the script.

After few trials and errors I came around the command

POL_Shortcut_InsertBeforeWine

for more information, check the wiki: http://wiki.playonlinux.com/index.php/Scripting_-_Chapter_11:_List_of_Functions#POL_Shortcut_InsertBeforeWine_.284.0.2B.29

 

With the following updated script, you can install KakaoTalk in English and have Hangul displayed properly (I am still working on a way to install Kakao Talk in Korean).

#!/bin/bash
# Date : (2019-11-11 15-30)
# Last revision : (2019-11-14 16-42)
# Distribution used to test : Ubuntu 18.04 bionic
# Author : TheBallOfAeolus
# Licence : GPLv3
# PlayOnLinux: 4.3.4

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="KakaoTalk"
WINEVERSION="4.19"
TITLE="Kakao Talk"
EDITOR="Kakao Corp."
GAME_URL="https://www.kakaocorp.com/"
AUTHOR="TheBallOfAeolus"
DOWNLOADURL="http://app.pc.kakao.com/talk/win32/KakaoTalk_Setup.exe"
OSVERSION="win2008"
SHORTCUTFILENAME="KakaoTalk.exe"
DOWNLOADEDSETUPFILE="KakaoTalk_Setup.exe"

# Initialization
POL_SetupWindow_Init

POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOADURL"
    INSTALLER="$POL_System_TmpDir/$DOWNLOADEDSETUPFILE"
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Configuration
Set_OS "winxp"

#Dependencies
POL_Call POL_Install_gdiplus
POL_Call POL_Install_msxml6
POL_Call POL_Install_riched30
POL_Call POL_Install_wmp9
POL_Call POL_Install_mono28
POL_Call POL_Install_gecko

# Installation
Set_OS "$OSVERSION"

POL_SetupWindow_message "The installer for $TITLE will now appear.\nDo not allow the installer to launch the game.\nUncheck the box to launch the game at the end of the installation.\n\nIf the game is launched from the installer, the apllication will not be installed and you have to start the process again.\n" "Uncheck the Launch Game checkbox!"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
POL_Wine_WaitExit "$TITLE"

# Create Shortcuts
POL_Shortcut "$SHORTCUTFILENAME" "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" "LANG=ko_KR.EUC-KR"

# Cleanup
POL_System_TmpDelete

POL_SetupWindow_Close
exit

Edité par TheBallOfAeolus

Dadu042 Dimanche 17 Novembre 2019 à 14:05
Dadu042

Nice report.  If you add a way to use for other people than Korean too, I can add it to Supported software if you think this may be useful to other users.

TheBallOfAeolus Dimanche 17 Novembre 2019 à 14:33
TheBallOfAeolusAnonymous

The application has to be installed in English, but then you can change it to English or Korean.
For example, I currently have it installed in English, but I can write in English, Korean and Spanish (without the need of re-installing or modifying anything).

Because it is a Korean chat application, I have tried only the Hangul and English writing system (Spanish just because), but I guess other writing system should work without any issue.

I have modified the script and added mp10, riched20 and wmpcodecs, I was having issues with some notifications and by adding those, everything is fine.
I am not sure which one is the one that actually fixed it, but now everything is working :P

Personally I think it would be nice to have it added in the sopported software, I understand your view as well, but I think most of the users using this app will be Koreans or Korean related and with this script they would have the app installed and configured without any additional issues.

 

Here latest script:

#!/bin/bash
# Date : (2019-11-11 15-30)
# Last revision : (2019-11-16 21-44)
# Distribution used to test : Ubuntu 18.04 bionic
# Author : TheBallOfAeolus
# Licence : GPLv3
# PlayOnLinux: 4.3.4

[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

PREFIX="KakaoTalk"
WINEVERSION="4.19"
TITLE="Kakao Talk"
EDITOR="Kakao Corp."
GAME_URL="https://www.kakaocorp.com/"
AUTHOR="TheBallOfAeolus"
DOWNLOADURL="http://app.pc.kakao.com/talk/win32/KakaoTalk_Setup.exe"
OSVERSION="win2008"
SHORTCUTFILENAME="KakaoTalk.exe"
DOWNLOADEDSETUPFILE="KakaoTalk_Setup.exe"

# Initialization
POL_SetupWindow_Init

POL_Debug_Init

# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"

# Create Prefix
POL_System_TmpCreate "$PREFIX"

POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOADURL"
    INSTALLER="$POL_System_TmpDir/$DOWNLOADEDSETUPFILE"
fi

POL_Wine_SelectPrefix "$PREFIX"
POL_Wine_PrefixCreate "$WINEVERSION"

# Configuration
Set_OS "winxp"

#Dependencies
POL_Call POL_Install_gdiplus
POL_Call POL_Install_msxml6
POL_Call POL_Install_riched20
POL_Call POL_Install_riched30
POL_Call POL_Install_wmp9
POL_Call POL_install_wmp10
POL_Call POL_install_wmpcodecs
POL_Call POL_Install_mono28
POL_Call POL_Install_gecko


# Installation
Set_OS "$OSVERSION"

POL_SetupWindow_message "The installer for $TITLE will now appear.\nDo not allow the installer to launch the game.\nUncheck the box to launch the game at the end of the installation.\n\nIf the game is launched from the installer, the apllication will not be installed and you have to start the process again.\n" "Uncheck the Launch Game checkbox!"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
POL_Wine_WaitExit "$TITLE"

# Create Shortcuts
POL_Shortcut "$SHORTCUTFILENAME" "$TITLE"
POL_Shortcut_InsertBeforeWine "$TITLE" "LANG=ko_KR.EUC-KR"

# Cleanup
POL_System_TmpDelete

POL_SetupWindow_Close
exit
Dadu042 Mardi 21 Janvier 2020 à 9:58
Dadu042

Script added there: https://www.playonlinux.com/en/app-3838.html

Better late than never ;)

kladess Vendredi 4 September 2020 à 17:33
kladessAnonymous

I had changed wine version 4.21 to 5.0.1 and deactived some dependencies by changed wine version.

 



#!/bin/bash
# Date : (2020-01-25 22-29)
# Last revision : see changelog
# Distribution used to test : Ubuntu 18.04 bionic
# Author : TheBallOfAeolus
# Licence : GPLv3
# PlayOnLinux: 4.3.4
#
# CHANGELOG
# [TheBallOfAeolus] (2019-11-11 15-30)
#   Initial script.
# [TheBallOfAeolus] (2019-11-16 21-44)
#   I have modified the script and added mp10, riched20 and wmpcodecs, I was having issues with some notifications
#   and by adding those, everything is fine.
#   I am not sure which one is the one that actually fixed it, but now everything is working :P
# [Dadu042] (2020-01-21 09:50)
#   Wine 4.19 -> 4.21 (latest and perhaps final).
# [TheBallOfAeolus] (2020-01-25 22-29)
#   The latest version of KakaoTalk is not supporting Windows 2008 anymore, updating the configs to Windows 10
# [Dadu042] (2020-02-10 16:20)
#   Add POL_RequiredVersion.
#   Add category to POL_Shortcut.
# [kladess] (2020-09-02 01:15)
#  Wine 4.21 -> 5.0.2 (stable)
 
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"
    
PREFIX="KakaoTalk"
WINEVERSION="5.0.2"
TITLE="Kakao Talk"
EDITOR="Kakao Corp."
GAME_URL="https://www.kakaocorp.com/"
AUTHOR="TheBallOfAeolus"
DOWNLOADURL="http://app.pc.kakao.com/talk/win32/KakaoTalk_Setup.exe"
OSVERSION="win10"
SHORTCUTFILENAME="KakaoTalk.exe"
DOWNLOADEDSETUPFILE="KakaoTalk_Setup.exe"
    
# Initialization
POL_SetupWindow_Init
    
POL_Debug_Init
    
# Presentation
POL_SetupWindow_presentation "$TITLE" "$EDITOR" "$GAME_URL" "$AUTHOR" "$PREFIX"
 
POL_RequiredVersion "4.3.4" || POL_Debug_Fatal "$APPLICATION_TITLE $VERSION is required to install $TITLE"
    
# Create Prefix
POL_System_TmpCreate "$PREFIX"
    
POL_SetupWindow_InstallMethod "LOCAL,DOWNLOAD"
if [ "$INSTALL_METHOD" = "LOCAL" ]
then
    POL_SetupWindow_browse "Please select the installation file to run." "$TITLE installation"
    INSTALLER="$APP_ANSWER"
elif [ "$INSTALL_METHOD" = "DOWNLOAD" ]
then
    cd "$POL_System_TmpDir"
    POL_Download "$DOWNLOADURL"
    INSTALLER="$POL_System_TmpDir/$DOWNLOADEDSETUPFILE"
fi
    
POL_Wine_SelectPrefix "$PREFIX"
POL_System_SetArch "x86"
POL_Wine_PrefixCreate "$WINEVERSION"
    
# Configuration
Set_OS "$OSVERSION"
    
#Dependencies
POL_Call POL_Install_gdiplus
#POL_Call POL_Install_msxml6
#POL_Call POL_Install_riched20
#POL_Call POL_Install_riched30
#POL_Call POL_Install_wmp9
#POL_Call POL_install_wmp10
#POL_Call POL_install_wmpcodecs
POL_Call POL_Install_mono28
POL_Call POL_Install_gecko
POL_Call POL_Install_winhttp
    
# Installation
Set_OS "$OSVERSION"
    
POL_SetupWindow_message "The installer for $TITLE will now appear.nDo not allow the installer to launch the game.nUncheck the box to launch the game at the end of the installation.nnIf the game is launched from the installer, the apllication will not be installed and you have to start the process again.n" "Uncheck the Launch Game checkbox!"
POL_SetupWindow_wait "Installation in progress." "$TITLE installation"
POL_Wine_WaitBefore "$TITLE"
POL_Wine "$INSTALLER"
POL_Wine_WaitExit "$TITLE"
    
# Create Shortcuts
POL_Shortcut "$SHORTCUTFILENAME" "$TITLE" "" "" "Network;"
POL_Shortcut_InsertBeforeWine "$TITLE" "LANG=ko_KR.UTF-8"
    
# Cleanup
POL_System_TmpDelete
    
POL_SetupWindow_Close
exit

Edité par kladess

kladess Vendredi 4 September 2020 à 18:17
kladessAnonymous

i attached icons. I don’t know if it’s right to upload like this

 

 

 

 

 

Edité par kladess

Dadu042 Samedi 5 September 2020 à 9:44
Dadu042

Screentshots resized and added. I don't have the rights to change icons.

This site allows content generated by members, and we promptly remove any content that infringes copyright according to our Terms of Service. To report copyright infringement, please send a notice to dmcayonlinux.com