dj95/fn-notify

Call to __open_missing_mode declared with attribute error

Closed this issue · 9 comments

Kwbmm commented

Hey! I'm trying to compile this volume notifier, but after running make all, I immediately get:

In file included from /usr/include/fcntl.h:289:0,
                 from fn-notify.c:17:
In function ‘open’,
    inlined from ‘CheckForAnotherInstance’ at fn-notify.c:145:8:
/usr/include/x86_64-linux-gnu/bits/fcntl2.h:50:4: error: call to ‘__open_missing_mode’ declared with attribute error: open with O_CREAT or O_TMPFILE in second argument needs 3 arguments
    __open_missing_mode ();

Any suggestion?

dj95 commented

Seems like I missed the file permissions there :D strange that gcc doesn't throw this error for me. Can you try it again with the latest commit? It should be fixed now.

Kwbmm commented

It compiled successfully, but running ./fn-notify 34 returns No arguments provided

dj95 commented

Nevermind... I forgot to update the readme. It's ./fn-notify vol 34 for volume and ./fn-notify brig 34 for brightness. Sorry

Kwbmm commented

Allright, it works.

Only thing is, once the notification is displayed and the app quits, it prints "No such file or directory"

dj95 commented

Did you modify the path in the script? Check out the last commit and set the paths to your home-directory. Then it should work :)

Kwbmm commented

Which script are we talking about? I move the compiled bin to /usr/bin/notifier and just calling it.

The app works, it just returns that message

dj95 commented

There are some issues with the lock file because I hardcoded paths into it. Let me check this after work.

dj95 commented

Nevermind, I think I fixed it :D can you test with the latest commit, please?

Kwbmm commented

Works!