mirror of
				https://github.com/termux/termux-packages.git
				synced 2025-10-31 15:45:58 +00:00 
			
		
		
		
	- Fixes https://github.com/termux/termux-packages/issues/25426 How to launch IceWM in Termux:X11: ```bash pkg upgrade pkg install x11-repo pkg install termux-x11-nightly icewm xdg-menu xdg_menu --format icewm \ --fullmenu \ --root-menu \ $PREFIX/etc/xdg/menus/termux-applications.menu \ > ~/.icewm/programs export DISPLAY=:0 TERMUX_X11_XSTARTUP=icewm-session termux-x11 & ``` I was on the fence about whether or not to add `xdg_menu` commands to `postinst` scripts of window managers that don't generate their own menus by default, but I decided not to, because originally, the idea was that users of IceWM, Openbox, Fluxbox and others are supposed to have control over their own configuration files and choose their own way to set up their menu, and learn how to manually run a menu autogenerator, I just personally found the Arch Linux branch of the `xdg_menu` generator to be the easiest to port to Termux and generate a good applications menu for IceWM.
		
			
				
	
	
		
			26 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
| Most Android 11+ devices do not have permission
 | |
| to access /proc/net/dev without root, with
 | |
| some exceptions, so suppress this warning with
 | |
| the assumption that users of Android 11+ are
 | |
| probably familiar with this limitation and would rather
 | |
| not be annoyed by this warning spamming.
 | |
| The other observable effect when this warning occurs is
 | |
| the network status monitor not working,
 | |
| and if the user sees that happening, trying the commands
 | |
| 'pkg install iproute2' and 'ip a' on the same device without
 | |
| using root will show the user the same 'permission denied'
 | |
| message, informing them that they are using a device
 | |
| that does not permit network adapter metadata permission
 | |
| without root.
 | |
| --- a/src/apppstatus.cc
 | |
| +++ b/src/apppstatus.cc
 | |
| @@ -761,7 +761,7 @@ bool NetStatusControl::readNetDev(char* data, size_t size) {
 | |
|      if (fNetDev < 0) {
 | |
|          fNetDev = open(path, O_RDONLY | O_CLOEXEC);
 | |
|          if (fNetDev < 0) {
 | |
| -            fail("open %s", path);
 | |
| +            //fail("open %s", path);
 | |
|              return false;
 | |
|          }
 | |
|      }
 |