Commit graph

63 commits

Author SHA1 Message Date
G Derber
f7761fd635
Add ability to differentiate group ownership from user ownership. 2024-08-06 09:38:25 -04:00
Stefan
0855f494c4
retropiemenu.sh: add mc 7zip support
Midnight Commander needs p7zip to open 7z archives.
2023-03-13 23:00:28 +01:00
cmitu
e4f0ab355c retropiemenu: fix launching RetroArch from the menu
Due to the recent addition of the GameMode support, RetroArch needs access to the user's DBUS session socket.
When starting RetroArch from the RetroPie menu, `su` is used to launch it as the install user, but the DBUS socket path is not preserved (`DBUS_SESSION_BUS_ADDRESS`), leading to a en error and then a crash.

Prevent the crash by setting the XDG_RUNTIME_DIR when RetroArch is started with `su`.

NOTE: this primarily affects X11/PC users, where GameMode is part of the desktop install.
2022-03-19 09:25:57 +00:00
Jools Wills
927b9922df setup / packages - fix up installing retropiemenu / runcommand without a network connection
The previous changes to check for an internet connection to avoid showing options to update failed
with these modules as they have install_bin functions which are handled by rp_hasBinary but don't
require an internet connection.

To workaround this, I have added a "nonet" flag, which if set, will force has_net to 1 in setup and packages
so the install options will show, and they can be removed and reinstalled even if no network connection is available.

runcommand can still fail due to not being able to install mesa-drm - which will be reported, but it's safer to allow
the main runcommand to be installed even without mesa-drm in case of accidental removal.
2021-02-15 23:54:13 +00:00
Jools Wills
acdb1ddac8 Switch to associative arrays for module data and storage
Previously all the module data was in indexed arrays with matching offsets.
Each scriptmodule folder had an initial index and it was incremented per module.

Many package functions expected an index. Indexes were never unique and could change
depending on added modules etc. We also had to convert between them and module IDs.

Now it's all done by module id. There is a numbered index of all modules found, that
increments which is used in the GUI setup menus. But it's not needed by any packaging functions.

md_idx is dropped and the few modules that used it for install checks etc now use md_id.

all packaging functions use the id.

retropie_packages.sh now accepts the module id only.
2021-01-07 05:10:02 +00:00
EricFromCanada
c623eae161 Grammar fixes 2020-07-28 11:17:53 -04:00
EricFromCanada
9739bd1594 Reword wiki references to docs site 2020-07-28 11:09:39 -04:00
Hugo Hromic
1e849710d8 helpers - add getIPAddress() function
* the function obtains an externally routable source IP address for the machine
* an IPv4 route is tried first and, if not found, then an IPv6 route is tried
* the function also handles queries for specific devices (used in `wifi.sh`)
* replace all instances of `ip route (...)` with new `getIPAddress` function
2019-03-27 18:39:24 +00:00
Jools Wills
2d145c9d98 retropiemenu - quote vars 2018-02-27 17:14:44 +00:00
Jools Wills
c1f736f23f retropiemenu - fix menu reappearing after removal - fixes #2320
* the gamelist.xml was not removed on removal of the module, and this is used to detect an upgrade from older retropie where no $md_inst was created. This caused the module to be marked as installed when running the update hook
 * the delSystem call had the wrong parameter order, causing the es_systems.cfg entry to not be removed
2018-02-27 17:10:40 +00:00
Conn O'Griofa
2afc0958cf wifi: fixes for stretch
* Fallback to ip link set commands, needed when wlan0 is not defined
  in /etc/network/interfaces.
* Restart dhcpcd during link up to work around wpa_supplicant trigger
  failure.
* Ensure wlan0 is up before initiating scan & wait 1 second before start,
  or else interface scan can fail.
* Fix display of IP address & only show actual wlan0 IP address.

Also fix IP address display in retropiemenu.
2018-02-07 22:35:47 +00:00
Conn O'Griofa
1abe70cd8d retropiemenu: quit joy2key for RetroArch case 2017-11-22 02:06:25 +00:00
Jools Wills
da8e5ff074 only use joy2key in RetroPie-Setup gui and anything launched via retropie menu 2017-10-13 16:38:59 +01:00
Jools Wills
c74b69cb9c retropiemenu - execute custom user scripts as retropie user. 2017-06-16 16:56:48 +01:00
Jools Wills
60e3f67a68 all .rp files were created ignoring later logic
* move creation back to after system as been added which is ok now we always add a system
2016-12-28 17:04:09 +00:00
Jools Wills
3899e6dba5 mehstation - add _del_system / _add_rom to mehstation.
* make sure we create the .rp files for retropie menu first, so the system gets added
2016-11-29 03:12:08 +00:00
Jools Wills
e3f08d963e retropiemenu - skip configure in remove mode 2016-11-26 06:02:50 +00:00
Jools Wills
fcdf3111b7 retropiemenu - fix *.rp creation 2016-11-24 01:18:53 +00:00
Jools Wills
559765a48f retropiemenu - rework retropie menu to support multiple frontends
* call a _add_rom_module function for each setting
 * add _add_rom_emulationstation function for managing gamelists
 * add _add_rom_attractmode function for managing attractmode romlists
 * rename _addsystem_module to _add_system_module
2016-11-24 00:27:55 +00:00
Jools Wills
f5ffcfa631 add a new md_data variable for quick access to a modules additional data files 2016-10-19 21:56:38 +01:00
Jools Wills
826188a3f3 retropiemenu - disable config_save_on_exit when exiting RGUI, so we don't automatically overwrite all system configs. This was actually the behaviour before retropiemenu (with the older ES config menu). Should avoid some issues whilst still allowing users to manage the global retroarch config from RGUI. 2016-08-28 16:22:26 +01:00
Jools Wills
c3d361d301 retropiemenu - don't exec retropie_setup.sh - will end up with first joy2key running, but we can just callModule anyway 2016-08-19 16:46:43 +01:00
Jools Wills
ebedab9448 Revert "retropiemenu - use copyDefaultConfig for gameslist"
This reverts commit 7728b5c83d.

will cause a problem if we want to add new items to the menu - if users want to customise
the gamelist for the menu they can copy it to ~/RetroPie/retropiemenu
2016-08-17 17:06:39 +01:00
Jools Wills
7728b5c83d retropiemenu - use copyDefaultConfig for gameslist 2016-08-17 17:04:15 +01:00
Jools Wills
e385457a7b cosmetic - remove trailing spaces in copyright 2016-08-11 03:23:30 +01:00
Jools Wills
75971f85aa retropiemenu - another fix for #1599 2016-08-01 01:18:50 +01:00
Jools Wills
e8649864db retropie-menu - when launching retropie-setup from menu - use exec so we don't return to an older running script after (which break things) - should fix #1599 2016-08-01 00:49:57 +01:00
Jools Wills
67e335e1e2 modules - _update_hook functionality -
* add _update_hook function support - these get run on updating retropie-setup.
 * add update_hook functions for modules so they show up as installed on retropie-setup 4.x - eg modules that
   previously just apt-get installed a package.
2016-06-15 20:17:21 +01:00
Jools Wills
ff779b8aa6 allow removing of retropie menu 2016-06-07 13:01:24 +01:00
Jools Wills
d006ff5eb1 move retropie menu to core - still needs a remove function though 2016-06-07 13:01:24 +01:00
Jools Wills
8dd2069660 use config instead of conf 2016-06-06 22:08:36 +01:00
Jools Wills
889f8ecdfa Initial rewrite of the setup menu, including per package/module management
* rp_module_menus is no more - instead use rp_module_section with one of
   - core (core packages)
   - main (main packages - which will be installed by default in the image)
   - opt (optional packages)
   - exp (experimental packages)
   - driver (driver packages)
   - config (configuration packages / tools)

 * The setup menu organises the data based on the above sections. more could be added in the future if needed. Packages (internally modules), can be added / configured / removed individually, or as entire sections.

 * The setup menu will automatically detect if a binary is available to be installed. the nobin flag is no longer needed. modules that install directly from binary via aptInstall or via a prebuilt binary need to use an install_bin_ function instead of install_

 * rp_module_section of type "config" will have the "gui_" function called first if it's available, otherwise a standard depends/sources/build/install/configure will be called

 * configure is no longer used for "gui" configuration function - use gui_ instead. Had already started to move to this before, but now it is required.
2016-06-06 22:08:36 +01:00
Jools Wills
a92e00aa4c actually remove existing dispmanc.rp retropie menu entry 2016-04-11 20:35:56 +01:00
Jools Wills
0de788de59 added new gamelist.xml with descriptions and icons for retropiemenu.
removed dispmanx configuration as most users don't need to use it
big thanks to Rookervik and Herb
fixes #1395
2016-04-09 03:50:21 +01:00
Jools Wills
63bccc25e9 enable bluetooth module for x86 (it works depite the fact that the X tools are better) and add to retropiemenu 2016-02-05 00:44:12 +00:00
Jools Wills
7545b4c359 add runcommand launch script configuration to retropie menu
if a module has a "gui" function - call that are dependencies, else call "configure". this is due to some modules containing source install and configure options as well as an additional gui functionality.
we should move all gui menus to a gui function so that configure functions are always non-interactive
2016-02-05 00:27:43 +00:00
Jools Wills
249b8a5604 -L flag when chowning $HOME/.emulationstation so the symlink is followed 2016-01-19 04:35:44 +00:00
Jools Wills
aed66a56e6 change the retropie menu so rpi specific entries are only added for rpi after default entries are added 2016-01-03 23:58:47 +00:00
gizmo98
c222b55839 refine menuconfig 2015-12-25 13:46:40 +01:00
gizmo98
4d0efb29e2 Add retropie menu for x86 2015-12-25 13:39:21 +01:00
gizmo98
6e05542690 exclude retropiemenu for now 2015-12-25 10:31:05 +01:00
Jools Wills
18effcc13d make the "show ip" retropie menu option actually usable - show ip in a dialog and include output from "ip addr show" also. 2015-12-03 18:15:55 +00:00
Jools Wills
d7f843d473 copyright sp / minor wording tweak 2015-10-12 00:09:22 +01:00
Florian
db0dd30692 CHG: Updated copyright information. 2015-10-11 21:03:16 +02:00
Jools Wills
6d7d74cd78 remove retroarch joystick/keyboard config from retropie menu - it's generally not needed due to the autoconfiguration, so we don't want people
to think they need to run it after initial config on ES
2015-10-03 16:59:11 +01:00
Jools Wills
c0f0a984bf rather than correcting stdin/stdout to /dev/tty for alsamixer, do it when retropie-setup is launched from ES so all modules benefit 2015-10-03 16:52:31 +01:00
Jools Wills
283b4f4703 moved bashwelcometweak and retropiemenu from the source menu - they can be manually triggered later (along with other system tweaks). 2015-08-13 02:34:41 +01:00
Jools Wills
b83104914b added configuration editor module to retropie menu (and improve the description) 2015-08-07 17:50:02 +01:00
Jools Wills
dd63dbfd0b remove old wifi config from retropie menu and use new wifi module 2015-08-02 23:11:34 +01:00
Jools Wills
5c9a35907e add option to retropie menu to launch RGUI directly without any core loaded 2015-07-16 23:53:56 +01:00