this is only a temporary workaround, the command executed by -p must be configurable through some switch, that was the initial idea, just using sselp is too limited, I'll look into the other issues soon
This commit is contained in:
		
							parent
							
								
									0ec702fcc9
								
							
						
					
					
						commit
						b9e8f899c9
					
				@ -466,7 +466,7 @@ kpress(XKeyEvent * e) {
 | 
				
			|||||||
				FILE *fp;
 | 
									FILE *fp;
 | 
				
			||||||
				char *c;
 | 
									char *c;
 | 
				
			||||||
				if(!(fp = (FILE*)popen("sselp", "r")))
 | 
									if(!(fp = (FILE*)popen("sselp", "r")))
 | 
				
			||||||
					fprintf(stderr, "dmenu: Could not popen sselp\n");
 | 
										eprint("dmenu: Could not popen sselp\n");
 | 
				
			||||||
				c = fgets(text + len, sizeof(text) - len, fp);
 | 
									c = fgets(text + len, sizeof(text) - len, fp);
 | 
				
			||||||
				pclose(fp);
 | 
									pclose(fp);
 | 
				
			||||||
				if(c == NULL)
 | 
									if(c == NULL)
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user