Page 1 of 1

Application Buttons

PostPosted: 07. March 2016 23:53
by 18visions
When I start XAMPP with the GUI the Get Started and Go To Application buttons do not work. With the terminal open I see:

(nautilus:15201): GLib-CRITICAL **: Source ID 113 was not found when attempting to remove it

[0307/144845:ERROR:nss_util.cc(98)] Failed to create /home/nicholas/.pki/nssdb directory.
[0307/144851:ERROR:nss_util.cc(98)] Failed to create /home/nicholas/.pki/nssdb directory.

Any input is appreciated.

Re: Application Buttons

PostPosted: 06. December 2022 20:22
by Bambi56
Problem: Get Started and Apache Friends buttons not working on Xampp 8.1.10-0

I have fixed this problem for Debian 9 Stretch by using strace to see what was failing to launch.

Here is the significant code:-
Running Firefox as root in a regular user's session is not supported. ($XAUTHORITY is /home/john/.Xauthority which is owned by john.)
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: seamonkey: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: mozilla: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: epiphany: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: konqueror: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: chromium-browser: not found
[2379:2379:1206/154132.708079:ERROR:zygote_host_impl_linux.cc(90)] Running as root without --no-sandbox is not supported. See https://crbug.com/638180.
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: www-browser: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: links2: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: elinks: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: links: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: lynx: not found
/usr/bin/xdg-open: 778: /usr/bin/xdg-open: w3m: not found
xdg-open: no method available for opening 'http://wiki.bitnami.com/Infrastructure_Stacks/BitNami_for_XAMPP'


The problem is that from Debian 9 Stretch Firefox cannot be run as root but Xampp needs root privelege to start owing to Apache. If you look at the quoted code you can see that many other browsers are tried in the starting sequence on pressing Get Started so I began by installing Seamonkey in /usr/lib/ to see if it would work. I made a soft link (ln -s) from /usr/bin/ and also an entry in /usr/share/applications/ for the menu (followed by apt-get update to activate).

The result is that on clicking the Get Started button and the Apache Friends button on the Xampp control panel, Seamonkey launches with superuser priveleges and opens the relevant pages.

Re: Application Buttons

PostPosted: 07. December 2022 11:45
by Bambi56
The same fix applies to Debian 10 Buster by installing Seamonkey which will run with superuser privileges and enable the two buttons discussed. On Debian 10 Buster gksu has been deprecated but may be substituted by lxqt-sudo.