Files
64gram-desktop/README.md

1.4 KiB

I hate the future

Please dont use docker, use podman instead

reason is that if you saved a file from telegram to your host, it will be saved as root user and your user cannot delete it and podman runs as your user, so thats not an issue.

save this as docker-compose.yml

version: '3.5'

services:
  64gram:
    hostname: 64gram
    image: git.shihaam.dev/dockerfiles/64gram
    environment:
      - DISPLAY  # For GUI access
    devices:
      - /dev/snd:/dev/snd  # Mic and Speaker support
      - /dev/video0:/dev/video0  # Webcam support
    volumes:
      - $HOME/.local/share/64Gram:/root/.local/share/64Gram  # Telegram data
      - $HOME/Downloads:/root/Downloads  # Downloads folder
      - $HOME/Pictures:/root/Pictures  # Pictures folder
      - $HOME/Documents:/root/Documents  # Documents folder
      - /usr/share/icons:/usr/share/icons  # Icons for UI, like Mouse cursor
      - /tmp/.X11-unix:/tmp/.X11-unix  # X11 socket for GUI
      - /tmp/xdg-open.socket:/tmp/xdg-open.socket # Add support for xdg-open

obviously change the docker.host to your host machines IP.
and run podman-compose up -d or if you wanna live dangerously then you may..: docker compose up -d

Telegram cannot open links from the container to host machine, and to work around that is this script, be sure to run it along with the container

#!/bin/bash
socat UNIX-LISTEN:/tmp/xdg-open.socket,fork EXEC:"xargs -n 1 xdg-open"

k, thanks, bye