photon-studio-bin
The package downloads a prebuilt Flatpak from a non-standard, non-whitelisted host (tenzen.studio) with a SKIP'd checksum, representing a supply-chain risk if the host were compromised or the artifact swapped, though it is plausibly the official source.
Triggered rules
source_untrusted_domain
One or more source=() URLs point to a host outside the trusted allowlist (github.com, gitlab.com, codeberg.org, pypi.org, …).
-
PKGBUILD:36
"Photon-Studio-${pkgver}-linux-x64.flatpak::https://tenzen.studio/api/v1/photon/download?platform=linux&arch=x64"
llm_review
An AI model (qwen/qwen3-235b-a22b-2507) reviewed this and agrees it is MEDIUM (confidence 85%): The package downloads a prebuilt Flatpak from a non-standard, non-whitelisted host (tenzen.studio) with a SKIP'd checksum, representing a supply-chain risk if the host were compromised or the artifact swapped, though it is plausibly the official source.
PKGBUILD
1 offending line(s) highlighted# Maintainer: sfs sfslinux@gmail.com
pkgname=photon-studio-bin
pkgver=0.1.20
pkgrel=2
pkgdesc="A desktop local-first image editor with layers and native PSD support (Extracted from Flatpak)"
arch=('x86_64')
url="https://tenzen.studio/photon/"
license=('LicenseRef-Photon-Studio')
makedepends=('flatpak')
depends=(
'alsa-lib'
'at-spi2-core'
'atk'
'gdk-pixbuf2'
'gtk3'
'libcups'
'libsecret'
'libx11'
'libxcomposite'
'libxdamage'
'libxext'
'libxfixes'
'libxkbcommon'
'libxrandr'
'mesa'
'nspr'
'nss'
)
options=('!strip')
source=(
#В России качайте через браузер с ...
#Альтернатива https://www.techspot.com/downloads/7907-photon-studio.html
"Photon-Studio-${pkgver}-linux-x64.flatpak::https://tenzen.studio/api/v1/photon/download?platform=linux&arch=x64"
"photon-studio.png::https://tenzen.studio/assets/brand/photon-logo.png"
"update.sh"
)
sha256sums=('SKIP'
'd49bb3c106257c1f75995fa793737113dc87418be5bec19388e6a523ffaafc18'
'c1ef24a0003e94bdcd17176e2e689aac6d224c31656733b64db2512baefabb1a'
)
prepare() {
cd "$srcdir"
mkdir -p "$srcdir/fake-flatpak-home"
echo "==> Extracting Photon Studio Flatpak..."
FLATPAK_USER_DIR="$srcdir/fake-flatpak-home" \
flatpak install \
--user \
--bundle \
--noninteractive \
--assumeyes \
--no-deps \
"$srcdir/Photon-Studio-${pkgver}-linux-x64.flatpak"
}
package() {
local app_dir
install -dm755 "$pkgdir/opt/photon-studio"
install -dm755 "$pkgdir/usr/bin"
install -dm755 "$pkgdir/usr/share/applications"
install -Dm644 \
"$srcdir/photon-studio.png" \
"$pkgdir/usr/share/pixmaps/photon-studio.png"
echo "==> Locating extracted application..."
app_dir="$(
find "$srcdir/fake-flatpak-home" \
-type d \
-path '*/app/*/*/*/*' \
-print -quit
)"
if [[ -z "$app_dir" ]]; then
echo "ERROR: Photon Studio application directory not found"
exit 1
fi
echo "==> Application directory: $app_dir"
if [[ ! -d "$app_dir/files/lib/com.tenzen.photon" ]]; then
echo "ERROR: Photon Studio files directory not found"
exit 1
fi
cp -a --no-preserve=links \
"$app_dir/files/lib/com.tenzen.photon/." \
"$pkgdir/opt/photon-studio/"
#
# Desktop file
#
local desktop_file
desktop_file="$(
find "$srcdir/fake-flatpak-home" \
-type f \
-name '*.desktop' \
-path '*/export/share/applications/*' \
-print -quit
)"
if [[ -n "$desktop_file" ]]; then
install -Dm644 \
"$desktop_file" \
"$pkgdir/usr/share/applications/photon-studio.desktop"
sed -i \
's|^Exec=.*|Exec=photon-studio %U|' \
"$pkgdir/usr/share/applications/photon-studio.desktop"
sed -i \
's|^Icon=.*|Icon=photon-studio|' \
"$pkgdir/usr/share/applications/photon-studio.desktop"
else
cat > "$pkgdir/usr/share/applications/photon-studio.desktop" <<'EOF'
[Desktop Entry]
Name=Photon Studio
Comment=Desktop image editor with layers and native PSD support
Exec=photon-studio %U
Terminal=false
Type=Application
Icon=photon-studio
Categories=Graphics;Photography;
MimeType=image/jpeg;image/png;image/webp;image/tiff;image/vnd.adobe.photoshop;
StartupWMClass=Photon Studio
EOF
fi
#
# Exported icons
#
local icon_dir="$srcdir/fake-flatpak-home"
if find "$icon_dir" \
-type d \
-path '*/export/share/icons/*' \
-print -quit | grep -q .; then
install -dm755 "$pkgdir/usr/share/icons"
find "$icon_dir" \
-type d \
-path '*/export/share/icons/*' \
-exec cp -a {} "$pkgdir/usr/share/icons/" \;
fi
#
# Launcher
#
cat > "$pkgdir/usr/bin/photon-studio" <<'EOF'
#!/bin/sh
exec /opt/photon-studio/photon-studio "$@"
EOF
chmod 755 "$pkgdir/usr/bin/photon-studio"
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
cat > "$pkgdir/usr/share/licenses/$pkgname/LICENSE" <<'EOF'
Photon Studio is proprietary software.
The applicable license terms are provided by the copyright holder,
Tenzen Studio.
Upstream:
https://tenzen.studio/photon/
EOF
}
Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-11-01 00:21:48 | Medium | 2 |
| 2026-10-31 00:07:41 | Medium | 2 |
| 2026-10-30 00:29:30 | Medium | 2 |
| 2026-10-29 00:13:55 | Medium | 2 |
| 2026-10-28 00:06:54 | Medium | 2 |
| 2026-10-27 00:23:28 | Medium | 2 |
| 2026-10-26 00:12:40 | Medium | 2 |
| 2026-10-25 00:20:48 | Medium | 2 |
| 2026-10-24 00:14:55 | Medium | 2 |
| 2026-10-23 00:02:19 | Medium | 2 |
| 2026-10-22 00:13:10 | Medium | 2 |
| 2026-10-21 00:12:50 | Medium | 2 |
| 2026-10-20 00:10:31 | Medium | 2 |
| 2026-10-19 00:03:55 | Medium | 2 |
| 2026-10-18 00:06:55 | Medium | 2 |
| 2026-10-17 00:21:55 | Medium | 2 |
| 2026-10-16 00:12:47 | Medium | 2 |
| 2026-10-15 00:28:05 | Medium | 2 |
| 2026-10-14 00:06:47 | Medium | 2 |
| 2026-10-13 00:23:45 | Medium | 2 |