dCore Import Debian Packages to Mountable SCE extensions > dCore x86 Imported Extensions

libgcrypt20 dependency problem

<< < (3/3)

pioj:
Ooh glad to read filetool still exists!! ;D

pioj:
Bad news for Weston: I put the script at the end of my .profile and made the backup, but it keeps telling me same error about XDG_RUNTIME_DIR.

As the  ${UID} gives "" (void, blank, nothing, nada), the dir ends being /tmp/-runtime-dir/. I suppose this is wrong. (id -u tc gives me 1001)

The directory is created and chmodded fine, but trying to run weston or weston-launch (with and without sudo) gives either:

fatal: failed to create compositor. (this error is new to me)
fatal: environment variable XDG_RUNTIME_DIR is not set. (again)



Jason W:
Ok, it is ~/.ashrc that works for me, and would be ~/.bashrc for bash.  Below is the code I added:


--- Code: ---TCUSER=`cat /etc/sysconfig/tcuser`
UID=`id -u "$TCUSER"`
if test -z "${XDG_RUNTIME_DIR}"; then
    export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
    if ! test -d "${XDG_RUNTIME_DIR}"; then
        mkdir "${XDG_RUNTIME_DIR}"
        chmod 0700 "${XDG_RUNTIME_DIR}"
    fi
fi

--- End code ---

Another alternative that would allow root to run but show similar behavior would be the below, if this was in /root/.ashrc  or /root/.bashrc:


--- Code: ---if test -z "${XDG_RUNTIME_DIR}"; then
    export XDG_RUNTIME_DIR=/tmp/${USER}-runtime-dir
    if ! test -d "${XDG_RUNTIME_DIR}"; then
        mkdir "${XDG_RUNTIME_DIR}"
        chmod 0700 "${XDG_RUNTIME_DIR}"
    fi
fi

--- End code ---

I notice other apps - firefox, audacious - also use this variable for runtime data in this location.

pioj:
no luck. The directory /tmp/1001-runtime-dir/ is now created correctly, but I'm getting the same errors as before.

I even tried to add tc to weston-launch group, with no effects at all.

The root alternative did nothing, in fact no directory was created inside /tmp/.

So, I'm stuck again.

Navigation

[0] Message Index

[*] Previous page

Go to full version