[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gambas-bugtracker] Bug #2996: Add GB_HTTPD_WEBDIR to set the DIR used by thttpd during the execution of a Web App
[Thread Prev] | [Thread Next]
- Subject: [Gambas-bugtracker] Bug #2996: Add GB_HTTPD_WEBDIR to set the DIR used by thttpd during the execution of a Web App
- From: <bugtracker@xxxxxxxxxxxxxx>
- Date: Thu, 27 Feb 2025 22:20:50 GMT
- To: olivier.cruilles@xxxxxxxx,bugtracker@xxxxxxxxxxxxxxxxxxxxxx
http://gambaswiki.org/bugtracker/edit?object=BUG.2996&from=L21haW4- Olivier CRUILLES reported a new bug. Summary ------- Add GB_HTTPD_WEBDIR to set the DIR used by thttpd during the execution of a Web App Type : Request Priority : Medium Gambas version : Master Product : Web components Description ----------- Hi Benoit, Regarding the development of Web App with gb.web.gui, I found a new option to exclude the '.public' dir during the creation of the executable *.gambas. It's cool because it permit to reduce the size of the executable *.gambas created, but after that, when I start the Web App in command line, the Web App does not display any icones, images, etc... beacause the embedded thttpd web server does not find the '.public' expected. So, it is possible to add an ENV Variable (like GB_HTTPD_WEBDIR) that will permit to define where the ".public" directory is located because not included into the executable ? I have modified manually the file 'gb.httpd/src/thttpd.h' with that: /*#define PUBLIC_PREFIX ".public/"*/ #define PUBLIC_PREFIX "/local/Gambas-3/gbGestionImmobilier/.public/" I have recompiled Gambas after that and tested my Web App, next started in command line the Web App, and it almost worked because I was able to see the Icones, Images, but the CSS files were not loaded. I can go futher because I'm not enought good in C/C++ language to do the modification correctly. Do you think it's possible to add it ? Thank you Olivier System information ------------------ [System] Gambas=3.20.99 16ea14968 (dev-oc-thttpd) OperatingSystem=Linux Distribution=Fedora Linux 39 (MATE-Compiz) Kernel=6.11.6-100.fc39.x86_64 Architecture=x86_64 Cores=8 Memory=32032M Language=fr_FR.UTF-8 Platform=x11 Desktop=MATE DesktopResolution=93 DesktopScale=7 WidgetTheme=proxy Font=Liberation Sans,10 DarkTheme=False [Programs] appimage-builder= clang=clang version 17.0.6 (Fedora 17.0.6-2.fc39) dpkg=Programme « dpkg » de gestion de paquets Debian version 1.22.6 (amd64). gcc=gcc (GCC) 13.3.1 20240913 (Red Hat 13.3.1-3) git=git version 2.47.0 msgmerge=msgmerge (GNU gettext-tools) 0.22 pngquant=4.0.0 (January 2023) rpmbuild=RPM version 4.19.1.1 trans=Translate Shell 0.9.7.1-git:4b4f024 [Libraries] Cairo=libcairo.so.2.11800.0 Curl=libcurl.so.4.8.0 DBus=libdbus-1.so.3.32.4 GDK2=libgdk-x11-2.0.so.0.2400.33 GDK3=libgdk-3.so.0.2411.32 GStreamer=libgstreamer-1.0.so.0.2212.0 GTK+2=libgtk-x11-2.0.so.0.2400.33 GTK+3=libgtk-3.so.0.2411.32 OpenGL=libGL.so.1.7.0 Poppler=libpoppler.so.130.0.0 QT4=libQtCore.so.4.8.7 QT5=libQt5Core.so.5.15.14 QT6=libQt6Core.so.6.6.2 RSvg=librsvg-2.so.2.48.0 SDL=libSDL2-2.0.so.0.2800.5 SQLite3=libsqlite3.so.0.8.6 [Environment] CAPP_BUILD=<home>/Packages/Starter/Build DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/1000/bus DEBUGINFOD_URLS=https://debuginfod.fedoraproject.org/ https://debuginfod.fyralabs.com/ DESKTOP_SESSION=mate DISPLAY=:0 EDITOR=/usr/bin/nano FREETYPE_PROPERTIES=truetype:interpreter-version=35 GB_GUI=gb.qt5 GDMSESSION=mate GDM_LANG=fr_FR.UTF-8 GIO_LAUNCHED_DESKTOP_FILE_PID=803850 GTK3_MODULES=xapp-gtk3-module GTKM_INSERT_EMOJI=1 GTK_BACKDROP=1 GTK_FOCUS_VISIBLE=1 GTK_OVERLAY_SCROLLING=0 GTK_PROGRESS_TEXT_INSIDE=1 HISTCONTROL=ignoredups HISTSIZE=1000 HISTTIMEFORMAT=%F %T HOME=<home> HOSTNAME=<hostname> IMSETTINGS_INTEGRATE_DESKTOP=yes IMSETTINGS_MODULE=none KDEDIRS=/usr LANG=fr_FR.UTF-8 LANGUAGE=fr_FR.UTF-8 LESSOPEN=||/usr/bin/lesspipe.sh %s LOGNAME=<user> MAIL=/var/spool/mail/<user> MANPAGER=less MATE_DESKTOP_SESSION_ID=this-is-deprecated MOZ_GMP_PATH=/usr/lib64/mozilla/plugins/gmp-gmpopenh264/system-installed PAGER=most PATH=<home>/.local/bin:<home>/.cargo/bin:<home>/narwhal/bin:/usr/lib64/qt-3.3/bin:/usr/lib64/ccache:<home>/.cargo/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/var/lib/snapd/snap/bin:<home>/bin:/usr/local/xaralx/bin PWD=<home> QTDIR=/usr/lib64/qt-3.3 QTINC=/usr/lib64/qt-3.3/include QTLIB=/usr/lib64/qt-3.3/lib QT_FONT_DPI=93 QT_IM_MODULE=xim QT_LOGGING_RULES=*.debug=false QT_QPA_PLATFORMTHEME=gtk2 QT_SCALE_FACTOR=1 RUNLEVEL=3 SESSION_MANAGER=local/unix:@/tmp/.ICE-unix/1845,unix/unix:/tmp/.ICE-unix/1845 SHELL=/bin/bash SHLVL=1 SSH_AGENT_PID=2089 SSH_ASKPASS=/usr/libexec/openssh/gnome-ssh-askpass SSH_AUTH_SOCK=<home>/tmp/keyring/ssh TERM=dumb TZ=:/etc/localtime USER=<user> XAUTHORITY=/run/lightdm/<user>/xauthority XDG_CURRENT_DESKTOP=MATE XDG_DATA_DIRS=<home>/.local/share/flatpak/exports/share:/var/lib/flatpak/exports/share:/usr/local/share:/usr/share:/var/lib/snapd/desktop XDG_GREETER_DATA_DIR=/var/lib/lightdm-data/<user> XDG_RUNTIME_DIR=<home>/tmp XDG_SEAT=seat0 XDG_SEAT_PATH=/org/freedesktop/DisplayManager/Seat0 XDG_SESSION_CLASS=user XDG_SESSION_DESKTOP=mate XDG_SESSION_ID=2 XDG_SESSION_PATH=/org/freedesktop/DisplayManager/Session0 XDG_SESSION_TYPE=x11 XDG_VTNR=1 XMODIFIERS=@im=none _=/usr/bin/gambas3 force_s3tc_enable=true key2FA1=GHPTQQ4GDRNTZBKG4P5ZFH24RA ----[ Gambas bugtracker-list is hosted by https://www.hostsharing.net ]----