Coder Social home page Coder Social logo

Comments (1)

freddii avatar freddii commented on June 30, 2024

at the moment i am installing the client with this script:

#!/bin/bash
#to run this script go into the folder where it is then run: ./install_kontalk-desktop.sh
#
set -eu
#
dpkg -l | grep -qw openjdk-8-jre-headless || sudo apt-get install openjdk-8-jre-headless -y
dpkg -l | grep -qw unzip || sudo apt-get install unzip -y
#
if [ -d "/home/$USER/programs_setup/kontalk_setup" ]; then
  rm -rf /home/$USER/programs_setup/kontalk_setup
  sudo rm -rf /home/$USER/desktopclient-java
  sudo rm -rf /home/$USER/.kontalk
  sudo rm -rf /home/$USER/.gradle
  rm -f /home/$USER/.local/share/applications/kontalk.desktop
fi
#
echo "if you run into errors maybe do:
sudo nano /etc/java-8-openjdk/accessibility.properties
Comment out the following line:
assistive_technologies=org.GNOME.Accessibility.AtkWrapper"
#
mkdir -p /home/$USER/programs_setup/kontalk_setup
cd /home/$USER/programs_setup/kontalk_setup
wget -q --show-progress -O kontalk.png https://avatars3.githubusercontent.com/u/6746728
wget -q --show-progress https://github.com/kontalk/desktopclient-java/releases/download/v3.1.2/KontalkDesktop-3.1.2.zip
unzip KontalkDesktop-*.zip
rm KontalkDesktop-*.zip
cd ./KontalkDesktop-*
#
cat << EOF | tee /home/$USER/.local/share/applications/kontalk.desktop
[Desktop Entry]
Name=Kontalk
Comment=a messenger app
Exec=sh -c '/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/xxUserxx/programs_setup/kontalk_setup/KontalkDesktop-3.1.2/KontalkDesktopApp.jar'
Icon=/home/xxUserxx/programs_setup/kontalk_setup/kontalk.png
Terminal=false
Type=Application
Categories=Application;Network;Internet;
StartupNotify=true
EOF
#
cd ~/.local/share/applications
sed -i 's/xxUserxx/'$USER'/' kontalk.desktop
#
cd /home/$USER/programs_setup/kontalk_setup/KontalkDesktop-*
/usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java -jar /home/$USER/programs_setup/kontalk_setup/KontalkDesktop-3.1.2/KontalkDesktopApp.jar

from desktopclient-java.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.