fastrizwaan / flatpak-wine

wine using flatpak (build with runtime freedesktop sdk 22.08), provides wine to Centos like distros (https://flatpak.org/setup/)
93 stars 4 forks source link

Select terminal to use for shell #16

Closed rayzchen closed 1 year ago

rayzchen commented 1 year ago

I would like to use xfce4-terminal instead of gnome-terminal

fastrizwaan commented 1 year ago
FLATPAK_NAME=io.github.fastrizwaan.WineZGUI
PREFIXDIR=~/.wine ; # just for this test
gnome-terminal --wait -- \
         flatpak --command=bash run "${FLATPAK_NAME}" --norc -c \
         'export WINEPREFIX=${PREFIXDIR}; cd "$1"; shift; exec bash --norc -i' \
         sh "${PREFIXDIR}"

if you can give me a working code with xfce4-terminal, then I'll include xfce4 terminal if gnome-terminal is not found.

rayzchen commented 1 year ago
xfce4-terminal --disable-server -e "
         flatpak --command=bash run "${FLATPAK_NAME}" --norc -c
         'export WINEPREFIX=${PREFIXDIR}; cd "$1"; shift; exec bash --norc -i'
         sh \"${PREFIXDIR}\""
rayzchen commented 1 year ago

Could you also set something like PS1="\u@\h:\w\$ "?

fastrizwaan commented 1 year ago
xfce4-terminal --disable-server -e "flatpak run --command=bash io.github.fastrizwaan.WineZGUI --norc -c \"export PS1='[\u@\h:\w]\$ '; export WINEPREFIX=PREFIXDIR; cd ${PREFIXDIR}; exec bash --norc\""
rayzchen commented 1 year ago

Yeah, that works fine

fastrizwaan commented 1 year ago

Please test https://github.com/fastrizwaan/flatpak-wine/releases/tag/0.95.7

Open-shell will now use xfce4-terminal if gnome-terminal is not found. Do no forget to WineZGUI->More->Update All Scripts

rayzchen commented 1 year ago

I still got This feature requires gnome-terminal

fastrizwaan commented 1 year ago

you need to update scripts to the latest winezgui version using WineZGUI->More->Update All Scripts

fastrizwaan commented 1 year ago

I still got This feature requires gnome-terminal

is it WineZGUI->More->Open Terminal? then yes, open terminal is not implemented with xfce4-terminal, but open-shell with prefix script is implemented. It'll take some time.

fastrizwaan commented 1 year ago

Update to 0.95.8 and check again.