ivan-hc / OBS-Studio-appimage

OBS Studio AppImage built on top of JuNest, the lightweight Arch Linux based distro that runs on top of any other Linux distro.
https://github.com/ivan-hc/ArchImage
18 stars 2 forks source link

please merge language , some language is empty #3

Closed newyorkthink closed 1 year ago

newyorkthink commented 1 year ago

image

newyorkthink commented 1 year ago

some language it show '[] [] [] []'

ivan-hc commented 1 year ago

This AppImage of OBS Studio is based on JuNest, a minimal Arch Linux distribution, so to build it I use "pacman", the 'package manager of Arch Linux. Are Chinese/Japanese/other languages in separate packages?

newyorkthink commented 1 year ago

yes, chinese and japanese have different packages the chinsese use this: pacman -Syu adobe-source-han-serif-cn-fonts wqy-zenhei --noconfirm

newyorkthink commented 1 year ago

but i don't know Japanese use package

ivan-hc commented 1 year ago

By installing the adobe packages the final AppImage is about 900 MB... so this is not a good idea.

Anyway, just found that by adding the flag --bind=/usr/share/fonts in the AppRun, I can read all the missing fonts, so this is the way. You can already test this by extracting the AppImage with the command ./*AppImage --appimage-extract and by replacing the last line in the AppRun with this one:

$HERE/.local/share/junest/bin/junest proot -n -b "--bind=/home --bind=/home/$(echo $USER) --bind=/media --bind=/opt --bind=/etc --bind=/usr/share/fonts" 2> /dev/null -- $APP "$@"

I'll correct this feature soon, but first I want to check a solution to automatically add the locale without having to set it first :)

ivan-hc commented 1 year ago

The problem with fonts has been solved. Also added automatic detection of locales from the host (I think you should remove OBS's configuration files to see the change).

Just wait the time that GH Actions has finisced and you're ready.