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 "$@"
@amit-420
Copy link

Can someone explain how to create a Desktop launcher?

sudo wget -O /opt/PomoDoneApp/logo.png https://icons.iconarchive.com/icons/papirus-team/papirus-apps/256/PomoDoneApp-icon.png

I tried this command, But still the pomodone doesn't start.

Though it runs by this

/opt/PomoDoneApp/pomodoneapp

@colematt
Copy link
Author

colematt commented Nov 5, 2021

@NumberPiOso thanks, I edited the gist with your changes. I'm not an active Pomodoneapp user anymore, but it appears that a lot of folks are finding this gist via search engines, so I will do my best to keep it updated.

@colematt
Copy link
Author

colematt commented Nov 5, 2021

@amit-420 that command doesn't create a desktop launcher, it downloads the icon image file for a desktop launcher file to use. You can create one using your favorite text editor, or there are GUI programs that will help you create one interactively if you search the Ubuntu software center. You are correct that the actual binary is located at /opt/PomoDoneApp/pomodoneapp, but if you want it to show up on your desktop or in the program launcher, you have to create a separate desktop file that will launch that binary on your behalf.

@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