Skip to content

Commit 8c9aab8

Browse files
shanemcdclaude
andcommitted
Extract 1Password version from tarball instead of running binary
The GUI binary requires D-Bus and can't run as root, so parse the version from the tarball directory name instead. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 99da67d commit 8c9aab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mybox/Containerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ RUN <<EORUN
149149
# to /usr/lib/1Password and create symlinks.
150150
# See: https://github.com/fedora-sysexts/community/blob/145f8b218e10fffc8cdb885dda1db9ebf06bf4e1/1password-gui/Containerfile
151151
curl -fL "https://downloads.1password.com/linux/tar/stable/$(uname -m)/1password-latest.tar.gz" -o /tmp/1password.tar.gz
152+
echo "1Password version: $(tar -tzf /tmp/1password.tar.gz | head -1 | grep -oP '1password-\K[0-9]+\.[0-9]+\.[0-9]+')"
152153
mv /opt{,.bak}
153154
mkdir -p /opt/1Password
154155
tar -xzf /tmp/1password.tar.gz -C /opt/1Password --strip-components=1
@@ -161,7 +162,6 @@ RUN <<EORUN
161162
sed -i 's|^Exec=/opt/1Password|Exec=/usr/bin|g' /usr/share/applications/1password.desktop
162163
rm -rf /opt
163164
mv /opt{.bak,}
164-
1password --version --no-sandbox
165165

166166
# Cursor IDE
167167
bash /tmp/install-cursor.sh

0 commit comments

Comments
 (0)