mrclksr / linux-browser-installer

Script to install Linux browsers under a Linux chroot on FreeBSD
165 stars 25 forks source link

/compat/linux/bin/edge: line 9: /usr/bin/microsoft-edge-dev: No such file or directory #21

Closed Marietto2008 closed 2 years ago

Marietto2008 commented 2 years ago

Hello.

I'm trying to run the edge browser following the tutorial : https://forums.freebsd.org/threads/...-google-chrome-linux-binary-on-freebsd.77559/

so,I've folllowed that tutorial,with some minor changes. For example,I've created the custom edge launcher script called /compat/linux/bin/edge and I made it executable:

#!/compat/linux/bin/bash
export EDGE_PATH="/usr/bin/microsoft-edge-dev"
export EDGE_WRAPPER="`readlink -f "$0"`"
export LD_LIBRARY_PATH=/usr/local/steam-utils/lib64/fakeudev
export LD_PRELOAD=/usr/local/steam-utils/lib64/webfix/webfix.so
export LIBGL_DRI3_DISABLE=1
exec -a "$0" "$EDGE_PATH" --no-sandbox --no-zygote --test-type --v=0 "$@"

and I've created this desktop file to launch edge as any other app:

[Desktop Entry]
Type=Application
Version=1.0
Encoding=UTF-8
Name=Edge
Comment=Edge web browser
Icon=edge
Exec=/compat/linux/bin/edge
Categories=Application;Network;WebBrowser;
MimeType=text/html;text/xml;application/xhtml+xml;x-scheme-handler/http;x-scheme-handler/https;x-scheme-handler/ftp;
StartupNotify=true

unfortunately when I execute it,I get the following error message :

@marietto:/home/marietto/Desktop/Browsers # /compat/linux/bin/edge
/compat/linux/bin/edge: line 9: /usr/bin/microsoft-edge-dev: No such file or directory

I don't know why,since the microsoft-edge-dev file is located on /compat/linux/usr/bin :

@marietto:/home/marietto/Desktop/Browsers # find /compat/linux/usr/bin -name microsoft-edge-dev
/compat/linux/usr/bin/microsoft-edge-dev

and the wrapper called edge is located on /compat/linux/bin

marietto:/home/marietto/Desktop/Browsers # find /compat/linux/bin -name edge
/compat/linux/bin/edge
mrclksr commented 2 years ago

Hi @Marietto2008,

this is not the right place for your question, but if you want to install Microsoft Edge:

$ git clone https://github.com/mrclksr/linux-browser-installer.git
$ cd linux-browser-installer
$ sudo ./linux-browser-installer install edge

If you want to install it manually, see the files bin/linux-edge.in, chroot/bin/edge.in, and linux-edge.desktop for inspiration.