[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Gambas clipboard - solved.


Yes that fixed the problem.

The original documentation must have been updated - could have sworn that it used to say "text/html" for text data.

This might have changed when 3.1.8 came out and "text/uri-list" was added ( wild guess)


Cheers,

Ian.


On 23/11/25 8:26 pm, Bruce Steers wrote:
Try text/plain for mime type

BruceS


On Sun, 23 Nov 2025, 08:14 Ian Roper, <westozscribe@xxxxxxxxx> wrote:

    Greetings,

    I can't seem to get the clipboard to function.

    This is the code that I'm using.

      Clipboard.Current = Clipboard.Default
       Clipboard.Clear
       Clipboard.Copy({some string text}, "text/html")


    When I select 'paste' from any right click option or attempt a Ctl-V
    there is no data pasted.

    This doesn't seem to work in a running Gambas application ( copy
    to an
    available text control) or to any external application such as a
    standard text editor.

    What am I doing wrong ?

    Cheers,

    Ian.

    =============================================================================

    [System]
    Gambas=3.21.1 5994807 (stable)
    OperatingSystem=Linux
    Distribution=Linux Mint 22.2 (Zara)
    Kernel=6.8.0-88-generic
    Architecture=x86_64
    Cores=12
    Memory=15907M
    Language=en_AU.UTF-8
    Platform=x11
    Desktop=CINNAMON
    DesktopResolution=96
    DesktopScale=8
    WidgetTheme=mint-y-aqua
    Font=Ubuntu,11
    DarkTheme=False
    [Programs]
    dpkg=Debian 'dpkg' package management program version 1.22.6 (amd64).
    gcc=gcc (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
    git=git version 2.43.0
    msgmerge=msgmerge (GNU gettext-tools) 0.21
    rpmbuild=RPM version 4.18.2
    [Libraries]
    Cairo=libcairo.so.2.11800.0
    Curl=libcurl.so.4.8.0
    DBus=libdbus-1.so.3.32.4
    GDK2=libgdk-x11-2.0.so.0.2400.33
    GDK3=libgdk-3.so.0.2409.32
    GStreamer=libgstreamer-1.0.so <http://libgstreamer-1.0.so>.0.2402.0
    GTK+2=libgtk-x11-2.0.so.0.2400.33
    GTK+3=libgtk-3.so.0.2409.32
    OpenGL=libGL.so.1.7.0
    Poppler=libpoppler.so.134.0.0
    QT5=libQt5Core.so.5.15.13
    QT6=libQt6Core.so.6.4.2
    RSvg=librsvg-2.so.2.50.0
    SDL=libSDL2-2.0.so.0.3000.0
    SQLite3=libsqlite3.so.0.8.6
    [Environment]
    CINNAMON_VERSION=6.4.8
    DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus
    DESKTOP_SESSION=cinnamon
    DISPLAY=:0
    GB_GUI=gb.gtk3
    GDMSESSION=cinnamon
    GDM_LANG=en_AU
    GIO_LAUNCHED_DESKTOP_FILE=/usr/share/applications/gambas3.desktop
    GIO_LAUNCHED_DESKTOP_FILE_PID=35124
    GJS_DEBUG_OUTPUT=stderr
    GJS_DEBUG_TOPICS=JS ERROR;JS LOG
    GNOME_DESKTOP_SESSION_ID=this-is-deprecated
    GPG_AGENT_INFO=/run/user/1000/gnupg/S.gpg-agent:0:1
    GTK3_MODULES=xapp-gtk3-module
    GTK_MODULES=gail:atk-bridge
    HOME=<home>
    LANG=en_AU.UTF-8
    LANGUAGE=en_AU.UTF-8
    LC_ALL=en_AU.UTF-8
    LOGNAME=<user>
    PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
    PWD=<home>
    QT_ACCESSIBILITY=1
    QT_LOGGING_RULES=*.debug=false
    SESSION_MANAGER=local/<hostname>:@/tmp/.ICE-unix/1861,unix/<hostname>:/tmp/.ICE-unix/1861
    SHELL=/bin/bash
    SHLVL=0
    SSH_AUTH_SOCK=/run/user/1000/keyring/ssh
    TZ=:/etc/localtime
    USER=<user>
    XAUTHORITY=<home>/.Xauthority
    XDG_ACTIVATION_TOKEN=cinnamon/Gambas 3/2273-13-<hostname>_TIME28458923
    XDG_CONFIG_DIRS=/etc/xdg/xdg-cinnamon:/etc/xdg
    XDG_CURRENT_DESKTOP=X-Cinnamon
    XDG_DATA_DIRS=/usr/share/cinnamon:/usr/share/gnome:<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share
    XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user>
    XDG_RUNTIME_DIR=/run/user/1000
    XDG_SEAT=seat0
    XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0
    XDG_SESSION_CLASS=user
    XDG_SESSION_DESKTOP=cinnamon
    XDG_SESSION_ID=c2
    XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0
    XDG_SESSION_TYPE=x11
    XDG_VTNR=7


Follow-Ups:
Re: Gambas clipboard - solved.Bruce Steers <bsteers4@xxxxxxxxx>
References:
Gambas clipboardIan Roper <westozscribe@xxxxxxxxx>
Re: Gambas clipboardBruce Steers <bsteers4@xxxxxxxxx>