Skip to content

Instantly share code, notes, and snippets.

@colematt
Last active April 11, 2024 04:01
Show Gist options
  • Save colematt/cb4777ffa6a8aaec15ce6d9cd70d39d8 to your computer and use it in GitHub Desktop.
Save colematt/cb4777ffa6a8aaec15ce6d9cd70d39d8 to your computer and use it in GitHub Desktop.
Pomodoneapp won't run on Ubuntu 20.04

Installation

  1. Install packages for Pomodoneapp:
    sudo apt install libcanberra-gtk-module libcanberra-gtk3-module gconf2 gconf-service libappindicator1
  2. Download Pomodoneapp
  3. Install Pomodoneapp:
    sudo dpkg -i ~/Downloads/PomoDoneApp_*.deb
  4. Install the Pango packages for Pomodoneapp:
     cd /opt/PomoDoneApp
     sudo wget http://launchpadlibrarian.net/438303557/libpango-1.0-0_1.42.4-7_amd64.deb
     sudo wget http://launchpadlibrarian.net/438303558/libpangocairo-1.0-0_1.42.4-7_amd64.deb
     sudo wget  http://launchpadlibrarian.net/438303559/libpangoft2-1.0-0_1.42.4-7_amd64.deb
    
     sudo dpkg -x libpango-1.0-0_1.42.4-7_amd64.deb .
     sudo dpkg -x libpangocairo-1.0-0_1.42.4-7_amd64.deb .
     sudo dpkg -x libpangoft2-1.0-0_1.42.4-7_amd64.deb .
    
     sudo rm -r /opt/PomoDoneApp/libpango*_amd64.deb
  5. Update library paths
    echo -e "\n# Pomodoneapp\nexport LD_LIBRARY_PATH\=\$LD_LIBRARY_PATH:/opt/PomoDoneApp/usr/lib/x86_64-linux-gnu" >> ~/.bashrc  
    . ~/.bashrc
  6. Run Pomodoneapp as a sanity check
    /opt/PomoDoneApp/pomodoneapp

Create a Desktop Launcher

  1. Add the wrapper script to ~/.local/share/applications
  2. Add the desktop launcher file to ~/.local/share/applications
  3. Add the desktop launcher icon file to /opt/PomoDoneApp/
    sudo wget -O /opt/PomoDoneApp/logo.png https://icons.iconarchive.com/icons/papirus-team/papirus-apps/256/PomoDoneApp-icon.png
[Desktop Entry]
Version=1.5.1545
Name=PomoDoneApp
Comment=Pomodoro Timer
Exec=~/.local/share/applications/pomodoneapp.sh
Icon=/opt/PomoDoneApp/logo.png
Terminal=false
Type=Application
Categories=Utility;Application;
#!/bin/bash
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/PomoDoneApp/usr/lib/x86_64-linux-gnu
exec /opt/PomoDoneApp/pomodoneapp "$@"
@dimeshk
Copy link

dimeshk commented Feb 28, 2022

Hi colematt, I stuck at step 5(Update library paths) .Could you tell me how to update the Library Path. since I am new linux user I am not clear about this step. Do I need to copy and paste this command in terminal?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment