1

I have a laptop with Ubuntu 24.04 LTS installed and I'm trying to replace the default Rhythmbox (version 3.4.7) with the latest version (3.4.8, not available before long in the official PPA according to the information I found on the internet). I don't want to use Flatpak for now and I'm also interested in learning "how the sausage is made" for once.

I've successfully followed the install procedure from the Rhythmbox GitLab. I can now launch Rhythmbox from the install directory with the commands:

$ export GSETTINGS_SCHEMA_DIR=$PWD/_install/share/glib-2.0/schemas
$ _install/bin/rhythmbox

My question is: What would be the correct way forward to turn this into a standard-behaving app? Basically, I want it to behave like the default version of Rhythmbox, with a launcher and such.

My (uneducated) guess would be:

  1. Move the compilation result to the default app location (something like usr/bin)
  2. Make a launching script (see two lines above)
  3. Create a launcher with a shortcut (something like this)

What would be the correct way to do this?

1 Answers1

0

You are correct. Unless you want to create a deb package which will properly place all the launchers, you can follow the procedure below.

Create a launching script with the following content

GSETTINGS_SCHEMA_DIR=$PWD/_install/share/glib-2.0/schemas /path/to/_install/bin/rhythmbox

Save it as $HOME/.local/bin/rhythmbox

Create a .desktop file, and point it to run your launching script $HOME/.local/bin/rhythmbox.