on pure wayland gentoo with global -X firefox from mozilla tar.bz needs
https://ftp.mozilla.org/pub/firefox/releases/latest/README.txtemerge -av x11-libs/libX11 x11-libs/libXcomposite x11-libs/libXcursor x11-libs/libXdamage x11-libs/libXext x11-libs/libXi x11-libs/libXrandr
x.c
#include <stdlib.h>
void gdk_x11_display_get_xdisplay() { abort(); }
void gdk_x11_get_default_root_xwindow() { abort(); }
void gdk_x11_get_default_xdisplay() { abort(); }
void cairo_xlib_surface_create() { abort(); }
void gdk_x11_xatom_to_atom() { abort(); }
void gdk_x11_window_get_xid() { abort(); }
void gdk_x11_get_xatom_by_name_for_display() { abort(); }
void gdk_x11_display_get_user_time() { abort(); }
void gdk_x11_screen_supports_net_wm_hint() { abort(); }
void gdk_x11_screen_get_screen_number() { abort(); }
void gdk_x11_screen_lookup_visual() { abort(); }
void gdk_x11_get_xatom_by_name() { abort(); }
void gdk_x11_window_lookup_for_display() { abort(); }
void gdk_x11_get_server_time() { abort(); }
void gdk_x11_atom_to_xatom() { abort(); }
void gdk_x11_lookup_xdisplay() { abort(); }
void gdk_x11_set_sm_client_id() { abort(); }
cc -shared -o x.so x.c
cat opt/firefox/firefox.sh
pat=~/opt/firefox/
env LD_PRELOAD=$pat/x.so apulse $pat/firefox "$@"
for tor browser add extra line
void gdk_x11_visual_get_xvisual() { abort(); }
run the binary and add missing symbol whatever it reports, for now it works
@Thu Apr 25 05:10:37 PM +0545 2024
Comments
Post a Comment