https://bugs.kde.org/show_bug.cgi?id=522792

            Bug ID: 522792
           Summary: the 9.1.0 compile version will not deploy on Ubuntu
                    26. I had to extract the AppImage
    Classification: Applications
           Product: digikam
      Version First 9.1.0
       Reported In:
          Platform: Ubuntu
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: [email protected]
          Reporter: [email protected]
  Target Milestone: ---

DESCRIPTION
I tried all day to get it to compile, and it can't be done on Ubuntu 26.
I was able to do it before with 9.0.0
With 9.1.0 there are too many problems, and they are not resolvable.
I was forced to finally deconstruct the AppImage and use it.
There's no .deb download or apt install, so it was the final choice.
Especially an app like this, sandboxing is terrible. I want full access to my
files, no matter where they are, local, network, removable, and sandboxing
breaks all of that.
I avoind sandboxing like the plague. This is a computer, not an iPhone/iPad, or
MAME emulator, where I want an app to run in an isolated worse than a VM cage.

STEPS TO REPRODUCE
1.  try to compile 9.0.0 on Ubuntu 26, it works
2. try 9.1.0 and it does not
3. 

OBSERVED RESULT
gave up after trying all day

EXPECTED RESULT
a working install, without all of this wasted effort

SOFTWARE/OS VERSIONS
Operating System (available in the Info Center app, or by running `kinfo` in a
terminal window):
KDE Plasma Version: 
KDE Frameworks Version: 
Qt Version: 
NOT ON KDE

OS: Ubuntu 26.04 LTS (Resolute Raccoon) x86_64
Host: MacBook Pro (13-inch, Mid 2012) (1.0)
Kernel: Linux 7.0.0-22-generic
Uptime: 11 days, 21 hours, 48 mins
Packages: 3368 (dpkg), 22 (snap)
Shell: bash 5.3.9
Display (APP9CC3): 1280x800 in 13", 60 Hz [Built-in]
DE: GNOME 50.1
WM: Mutter (Wayland)
WM Theme: Yaru-dark
Theme: Yaru-dark [GTK2/3/4]
Icons: Yaru-dark [GTK2/3/4]
Font: Ubuntu Sans (11pt) [GTK2/3/4]
Cursor: Yaru (24px)
Terminal: GNOME Terminal 3.58.0
Terminal Font: Ubuntu Sans Mono (11pt)
CPU: Intel(R) Core(TM) i5-3210M (4) @ 3.10 GHz
GPU: Intel 3rd Gen Core processor Graphics Controller @ 1.10 GHz [Integrated]
Memory: 4.99 GiB / 15.02 GiB (33%)
Battery (bq20z451): 61% [AC Connected]
Locale: en_US.UTF-8

My test laptop specs, I will install to my main system later.

ADDITIONAL INFORMATION
Also, there's another bug in the AppImage. After install, the application is
whitewashed, and unusable.
I was able to mouse-over and highlight until I could find where to set a
working theme. "Default" is invisible.
I added to my installer script to set the theme properly, so you can see after
an install.

Until there's a current downloadable .deb file or updated apt repo,
I created a working installer script. I think it will work on future versions:

#!/usr/bin/env bash

#
==============================================================================
# Script: digikam_system_install.sh
# Description: Downloads and installs Digikam into /opt/digikam, sets a 
#              system-wide .desktop entry, and forces the theme defined in 
#              THEME_NAME by updating the [Album Settings] section using native
bash.
#
==============================================================================

# Variables
APPIMAGE_URL="https://download.kde.org/stable/digikam/9.1.0/digiKam-9.1.0-Qt6-x86-64.appimage";
DOWNLOAD_DIR="/tmp/digikam_dl"
FILENAME="digiKam-9.1.0-Qt6-x86-64.appimage"
FILEPATH="$DOWNLOAD_DIR/$FILENAME"
INSTALL_DIR="/opt/digikam"
TEMP_EXTRACT_DIR="/tmp/digikam_tmp"
DESKTOP_FILE="/usr/share/applications/digikam.desktop"
CONFIG_FILE="$HOME/.config/digikamrc"
THEME_NAME="Black Body"

echo "--- Initializing System-Wide Setup ---"

# Ensure directories exist
sudo mkdir -p "$DOWNLOAD_DIR"
sudo mkdir -p "$INSTALL_DIR"
sudo mkdir -p "$TEMP_EXTRACT_DIR"

# 1. Download the AppImage
if [[ ! -f "$FILEPATH" ]]; then
    echo "Downloading Digikam AppImage to $DOWNLOAD_DIR..."
    sudo wget -O "$FILEPATH" "$APPIMAGE_URL"
    if [[ $? -ne 0 ]]; then
        echo "Error: Download failed."
        exit 1
    fi
else
    echo "AppImage already exists. Skipping download."
fi

# 2. Set execution permissions
sudo chmod +x "$FILEPATH"

# 3. Extraction and Installation
echo "Installing Digikam to $INSTALL_DIR..."
sudo rm -rf "${INSTALL_DIR:?}"/*
sudo rm -rf "${TEMP_EXTRACT_DIR:?}"/*

cd "$TEMP_EXTRACT_DIR" || exit
sudo "$FILEPATH" --appimage-extract > /dev/null

sudo mv squashfs-root/* "$INSTALL_DIR"

# 4. Desktop Integration
echo "Creating desktop entry..."
cat <<EOF | sudo tee "$DESKTOP_FILE" > /dev/null
[Desktop Entry]
Name=digiKam
Comment=Professional Photo Management
Exec=$INSTALL_DIR/AppRun
Icon=$INSTALL_DIR/digikam.png
Terminal=false
Type=Application
Categories=Graphics;Photography;
EOF

# Ensure the icon exists
if [[ -f "$INSTALL_DIR/usr/share/icons/hicolor/256x256/apps/digikam.png" ]];
then
    sudo cp "$INSTALL_DIR/usr/share/icons/hicolor/256x256/apps/digikam.png"
"$INSTALL_DIR/digikam.png"
fi

# 5. Patch [Album Settings] in digikamrc using native bash
echo "Patching '$THEME_NAME' theme into $CONFIG_FILE..."
mkdir -p "$HOME/.config"
touch "$CONFIG_FILE"

# Use a temporary file to rebuild the config cleanly
TMP_CONF=$(mktemp)

in_album_settings=false
theme_updated=false
section_exists=false

while IFS= read -r line || [[ -n "$line" ]]; do
    if [[ "$line" == "[Album Settings]" ]]; then
        in_album_settings=true
        section_exists=true
    elif [[ "$line" =~ ^\[.*\] ]]; then
        if [[ "$in_album_settings" == true && "$theme_updated" == false ]];
then
            echo "Theme=$THEME_NAME" >> "$TMP_CONF"
            theme_updated=true
        fi
        in_album_settings=false
    fi

    if [[ "$in_album_settings" == true && "$line" =~ ^Theme= ]]; then
        echo "Theme=$THEME_NAME" >> "$TMP_CONF"
        theme_updated=true
    else
        echo "$line" >> "$TMP_CONF"
    fi
done < "$CONFIG_FILE"

# Handle case where [Album Settings] exists at the end of file
if [[ "$in_album_settings" == true && "$theme_updated" == false ]]; then
    echo "Theme=$THEME_NAME" >> "$TMP_CONF"
    theme_updated=true
fi

# Handle case where [Album Settings] section is missing entirely
if [[ "$section_exists" == false ]]; then
    echo -e "\n[Album Settings]\nTheme=$THEME_NAME" >> "$TMP_CONF"
fi

mv "$TMP_CONF" "$CONFIG_FILE"

# Cleanup
cd /tmp || exit
sudo rm -rf "$TEMP_EXTRACT_DIR"
sudo rm -rf "$DOWNLOAD_DIR"

echo "--- Setup Complete ---"
echo "Digikam installed to: $INSTALL_DIR"
echo "Desktop entry created at: $DESKTOP_FILE"
echo "Theme set to '$THEME_NAME' in [Album Settings]"

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to