Port Requests


Sadly no, that didn't help.

I'm going to try building it again and will look at the config.mk again, maybe there's something in there I missed. I have a feeling the
Code:
CC stest.c
stest.c: In function ���main���:
stest.c:86:15: warning: implicit declaration of function ���getline��� [-Wimplicit-function-declaration]
   while ((n = getline(&line, &linesiz, stdin)) > 0) {
               ^

warning I got has something to do with it.

*edit
I read that adding

Code:
#define _GNU_SOURCE

before #include <stdio.h> would help, but sadly it didn't change the outcome when I tried to compile. I still get an error for "getline". I've read that you can interchange it with the fgets for C? Should I try that? I guess I will and see what happens.

*edit edit
No. It really didn't like that.
 
Last edited:
It's not an error, it's a warning. And the linking go well, so don't look here.
Plus, stest looks like some test, not the real app.
 
It works, but you need to type this (after the chmod on dmenu_path) for it to start:
Code:
PATH=$(pwd):$PATH ./dmenu_run
But I'm not sure how to use it after that...
 
Code:
Acanthus:/home/d0/dmenu$ ls -l
total 152
-rw-r--r-- 1 root root  1011 Jul 25 13:53 arg.h
-rw-r--r-- 1 root root   892 Jul 25 13:53 config.def.h
-rw-r--r-- 1 root root   892 Jul 26 15:20 config.h
-rw-r--r-- 1 root root   846 Jul 25 14:50 config.mk
-rwxr-xr-x 1 root root 19424 Jul 26 15:20 dmenu
-rw-r--r-- 1 root root  2765 Jul 25 13:53 dmenu.1
-rw-r--r-- 1 root root 16711 Jul 25 13:53 dmenu.c
-rw-r--r-- 1 root root 13308 Jul 26 15:20 dmenu.o
-rw-r--r-- 1 root root   294 Jul 25 13:53 dmenu_path
-rw-r--r-- 1 root root    58 Jul 25 13:53 dmenu_run
-rw-r--r-- 1 root root  9902 Jul 25 13:53 drw.c
-rw-r--r-- 1 root root  1659 Jul 25 13:53 drw.h
-rw-r--r-- 1 root root  6632 Jul 26 15:20 drw.o
-rw-r--r-- 1 root root  1442 Jul 25 13:53 LICENSE
-rw-r--r-- 1 root root  2130 Jul 25 13:53 Makefile
-rw-r--r-- 1 root root   475 Jul 25 13:53 README
-rwxr-xr-x 1 root root  5960 Jul 26 15:20 stest
-rw-r--r-- 1 root root  1530 Jul 25 13:53 stest.1
-rw-r--r-- 1 root root  3229 Jul 25 13:53 stest.c
-rw-r--r-- 1 root root  3304 Jul 26 15:20 stest.o
-rw-r--r-- 1 root root   482 Jul 25 13:53 util.c
-rw-r--r-- 1 root root   305 Jul 25 13:53 util.h
-rw-r--r-- 1 root root  1236 Jul 26 15:20 util.o
 
Shouldn't dmenu_path and dmenu_run show as being executable? I thought that was what chmod should have done.
 
If files are owned by root, you would need to use sudo like this:

sudo chmod +x dmenu_path

That's why i use a separate folder on the SD with normal user permissions.
 
Last edited:
EDIT: ninja'd by canseco.

@directive0 can you try the following?

Code:
sudo chown -R <insert your user name here> .
chmod +x dmenu_run
chmod +x dmenu_path

Right now, the owner of the files is root and that is probably why chmod didn't work. If you make yourself the owner, then you should be able to make it executable.
 
Last edited:
Code:
Acanthus:/home/d0/dmenu$ sudo chown -R d0 .
Acanthus:/home/d0/dmenu$ chmod -x dmenu_run
Acanthus:/home/d0/dmenu$ chmod -x dmenu
Acanthus:/home/d0/dmenu$ ./dmenu
bash: ./dmenu: Permission denied
Acanthus:/home/d0/dmenu$ ls -l
total 152
-rw-r--r-- 1 d0 root  1011 Jul 25 13:53 arg.h
-rw-r--r-- 1 d0 root   892 Jul 25 13:53 config.def.h
-rw-r--r-- 1 d0 root   892 Jul 26 15:20 config.h
-rw-r--r-- 1 d0 root   846 Jul 25 14:50 config.mk
-rw-r--r-- 1 d0 root 19424 Jul 26 15:20 dmenu
-rw-r--r-- 1 d0 root  2765 Jul 25 13:53 dmenu.1
-rw-r--r-- 1 d0 root 16711 Jul 25 13:53 dmenu.c
-rw-r--r-- 1 d0 root 13308 Jul 26 15:20 dmenu.o
-rw-r--r-- 1 d0 root   294 Jul 25 13:53 dmenu_path
-rw-r--r-- 1 d0 root    58 Jul 25 13:53 dmenu_run
-rw-r--r-- 1 d0 root  9902 Jul 25 13:53 drw.c
-rw-r--r-- 1 d0 root  1659 Jul 25 13:53 drw.h
-rw-r--r-- 1 d0 root  6632 Jul 26 15:20 drw.o
-rw-r--r-- 1 d0 root  1442 Jul 25 13:53 LICENSE
-rw-r--r-- 1 d0 root  2130 Jul 25 13:53 Makefile
-rw-r--r-- 1 d0 root   475 Jul 25 13:53 README
-rwxr-xr-x 1 d0 root  5960 Jul 26 15:20 stest
-rw-r--r-- 1 d0 root  1530 Jul 25 13:53 stest.1
-rw-r--r-- 1 d0 root  3229 Jul 25 13:53 stest.c
-rw-r--r-- 1 d0 root  3304 Jul 26 15:20 stest.o
-rw-r--r-- 1 d0 root   482 Jul 25 13:53 util.c
-rw-r--r-- 1 d0 root   305 Jul 25 13:53 util.h
-rw-r--r-- 1 d0 root  1236 Jul 26 15:20 util.o
 
Oh jeeze. I'm sorry. Let me try that. I must have made that mistake like 50 times now. Appreciate your patience.

Okay tried it as +x. I mean, it does something, I'm just not sure what. I use the PATH string you gave me too, but that doesn't do anything different.

Can I ask for my own knowledge what that string does?

Code:
Acanthus:/home/d0/dmenu$ ./dmenu_run: line 2: dmenu_path: Permission denied
Xlib:  extension "XINERAMA" missing on display ":0.0".




Acanthus:/home/d0/dmenu$ ls -l
total 152
-rw-r--r-- 1 d0 root  1011 Jul 25 13:53 arg.h
-rw-r--r-- 1 d0 root   892 Jul 25 13:53 config.def.h
-rw-r--r-- 1 d0 root   892 Jul 26 15:20 config.h
-rw-r--r-- 1 d0 root   846 Jul 25 14:50 config.mk
-rwxr-xr-x 1 d0 root 19424 Jul 26 15:20 dmenu
-rw-r--r-- 1 d0 root  2765 Jul 25 13:53 dmenu.1
-rw-r--r-- 1 d0 root 16711 Jul 25 13:53 dmenu.c
-rw-r--r-- 1 d0 root 13308 Jul 26 15:20 dmenu.o
-rw-r--r-- 1 d0 root   294 Jul 25 13:53 dmenu_path
-rwxr-xr-x 1 d0 root    58 Jul 25 13:53 dmenu_run
-rw-r--r-- 1 d0 root  9902 Jul 25 13:53 drw.c
-rw-r--r-- 1 d0 root  1659 Jul 25 13:53 drw.h
-rw-r--r-- 1 d0 root  6632 Jul 26 15:20 drw.o
-rw-r--r-- 1 d0 root  1442 Jul 25 13:53 LICENSE
-rw-r--r-- 1 d0 root  2130 Jul 25 13:53 Makefile
-rw-r--r-- 1 d0 root   475 Jul 25 13:53 README
-rwxr-xr-x 1 d0 root  5960 Jul 26 15:20 stest
-rw-r--r-- 1 d0 root  1530 Jul 25 13:53 stest.1
-rw-r--r-- 1 d0 root  3229 Jul 25 13:53 stest.c
-rw-r--r-- 1 d0 root  3304 Jul 26 15:20 stest.o
-rw-r--r-- 1 d0 root   482 Jul 25 13:53 util.c
-rw-r--r-- 1 d0 root   305 Jul 25 13:53 util.h
-rw-r--r-- 1 d0 root  1236 Jul 26 15:20 util.o


*edit

Woah hey I stand corrected! If i go to the filemanager and click on the dmenu executable it runs and puts the entry bar at the top of the screen!! it does not launch anything or autocomplete but hey thats a start! Its almost as if it doesnt think there are any apps.

Do you think stest might have something to do with it not grabbing the list of apps?

Pretty neat!
 
Last edited:
dmenu_path is still not executable

Copy and paste is not always a good idea, as i did a mistake, now corrected, ;)
 
Made dmenu_path executable, still no joy with opening apps.

Code:
Acanthus:~/dmenu$ ls -l

total 152

-rw-r--r-- 1 d0 root  1442 Jul 25 13:53 LICENSE

-rw-r--r-- 1 d0 root  2130 Jul 25 13:53 Makefile

-rw-r--r-- 1 d0 root   475 Jul 25 13:53 README

-rw-r--r-- 1 d0 root  1011 Jul 25 13:53 arg.h

-rw-r--r-- 1 d0 root   892 Jul 25 13:53 config.def.h

-rw-r--r-- 1 d0 root   892 Jul 26 15:20 config.h

-rw-r--r-- 1 d0 root   846 Jul 25 14:50 config.mk

-rwxr-xr-x 1 d0 root 19424 Jul 26 15:20 dmenu

-rw-r--r-- 1 d0 root  2765 Jul 25 13:53 dmenu.1

-rw-r--r-- 1 d0 root 16711 Jul 25 13:53 dmenu.c

-rw-r--r-- 1 d0 root 13308 Jul 26 15:20 dmenu.o

-rwxr-xr-x 1 d0 root   294 Jul 25 13:53 dmenu_path

-rwxr-xr-x 1 d0 root    58 Jul 25 13:53 dmenu_run

-rw-r--r-- 1 d0 root  9902 Jul 25 13:53 drw.c

-rw-r--r-- 1 d0 root  1659 Jul 25 13:53 drw.h

-rw-r--r-- 1 d0 root  6632 Jul 26 15:20 drw.o

-rwxr-xr-x 1 d0 root  5960 Jul 26 15:20 stest

-rw-r--r-- 1 d0 root  1530 Jul 25 13:53 stest.1

-rw-r--r-- 1 d0 root  3229 Jul 25 13:53 stest.c

-rw-r--r-- 1 d0 root  3304 Jul 26 15:20 stest.o

-rw-r--r-- 1 d0 root   482 Jul 25 13:53 util.c

-rw-r--r-- 1 d0 root   305 Jul 25 13:53 util.h

-rw-r--r-- 1 d0 root  1236 Jul 26 15:20 util.o
 
@directive0 : with the PATH command I give earlier? starting from /media/d0/dmenu ?

*EDIT* Wait? You are on the NAND now?
And your chown on all the file is not good, they are still on the "root" group.
 
Back
Top