-
Notifications
You must be signed in to change notification settings - Fork 558
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
newsbeuter doesn´t trigger browser when pressing "o" when using firejail #3312
Comments
Can you try setting the BROWSER variable with firejail like this |
@rusty-snake: Alas |
additional info: What strikes me as odd is the fact that using the
It basically says that an instance of newsbeuter is already running ((PID: 0) - which simply isn´t true! |
|
Hi, |
Ok then lets ignore any differences between the newsbeuter/newsboat profile and the lynx profile: most likely it is one of the following: private-bin, mdwe, protocol (missing unix), whtelist ${HOME}, nodbus, ipc-namespace |
@rusty-snake: So what do you think, how should I modify the newsbeuter.profile?
in the profile? Thanks again for your help. |
Hi, former Newsbeuter and current Newsboat maintainer here. Both programs use system(3) to execute the browser, which in turn uses |
@Minoru:
So until now the command |
If |
@rusty-snake:
|
Hello again, as everything works fine now an additional question came up: I´d very much like to use w3m instead of lynx as a browser. Alas this won´t work . Pressing "o" won´t trigger any browser at all. Thanks a lot in advance. Greetings. |
No hints even in the syslog? Based on the w3m profile, you can try adding this to your newsbeute.local. If it works you can harden it.
|
@rusty-snake:
So should I create Greetings. |
Yes. Yes or in Uhh and maybe you need to also |
@rusty-snake:
Using the command
Greetings. |
Have you added |
@Minoru: Thanks again. |
Can you try it with |
@rusty-snake:
in the newsbeuter.profile and
in |
Oh, this isn't an error in need of fixing, it's just a message. Newsbeuter checks if XDG dir is available, and if not, it falls back to the dotdir. Further on we see that ~/.newsbeuter/urls is loaded just fine; that indicates that @Rosika2 is indeed using the dotdir. (Though I understand that the general-purpose Firejail profile would whitelist both dirs) I think @Rosika2 should concentrate on running w3m standalone. Is Firejail blocking network access for it? I don't see any other reason for w3m to start but fail to connect to the site. |
It should, will fix this later.
No, but AF_UNIX sockets. @Rosika2 add also |
@rusty-snake:
Sorry for asking again, bute where should I put the entries? In the |
No, in the newsbeuter.profile/.local. |
@rusty-snake: Sorry for asking again. |
I just looked up |
The system behind this is that /etc/firejail/newsbeuter.profile is overridden on every update of firejail. If you want to customize it, you could copy it to ~/.config/firejail/newsbeuter.proifle, but then you don't get fixes/new feature on the next update. There fore every profile has a |
@rusty-snake: I now I´ve created the file with Pressing "o" opens up w3m. Well, we certainly did all we could. It seems w3m is not cut out for this purpose. So sorry to have taken up so much of your time. Thanks again to @rusty-snake and @Minoru . Have a nice and healthy weekend. Greetings. |
@Rosika2 have you tried it with only |
@rusty-snake:
|
No idea if it helps at all. When typing an URL directly (example: ubuntuusers.de) after typing "U" for direct url-entry, |
That sounds like Newsbeuter doesn't pass the URL to w3m, but I just took a look at the relevant part of the code and it seems impossible =\ (The code didn't change much since then, so it should work the same even if your distro backported some newer changes) |
@Minoru: But it´s not a specific w3m-problem as both sites (and every site for that matter) load perfectly when starting a standalone instance of w3m. Never mind. As already said, I´ll go for lynx then. Thanks so much. |
@Rosika2, if you don't mind, I'd still like to delve a bit deeper.
If this is a bug in Newsbeuter and it still exists in Newsboat, I'd like to know about it. Thanks! |
@Minoru:
Well, I´ll be blessed. Up and until now I´ve never tried this.
The command
I don´t have newsboat. Yet I may install it.
So before installing it: do you know if I can install it alongside newsbeuter? Greetings. Rosika |
Great, thanks!
Yes, you can. Newsboat stores its data in ~/.newsboat, so it won't conflict with Newsbeuter. On the first run, Newsboat will copy data from Newsbeuter; afterwards, it'll keep using its own copy. |
@Minoru: Now that I´ve successfully installed newsboat I can tell you the following: These commands do work with lynx or w3m as browser:
This doesn´t work:
Greetings. Rosika |
I guess this needs to be fixed in order for us to check if the bug is reproducible with Newsboat. |
Hi,
Yes, the urls-file is definitively filled with my example-entries. N E W_I N F O R M A T I O N : (don´t know if it helps at all): Now I performed a direct comparison of those commands:
There´s a fundamental difference between them: The newsboat-command works perfectly (including all browsers)
There´s definitively no instance of newsbeuter running. I don´t understand the error-message. Greetings. Rosika |
The most common cause for this is "wrong" location for the cache file, but I don't see this happening in your case. Another reason might be inaccessible location for the cache file, but again, this doesn't look like your case. (We intend to improve the message in Newsboat, just haven't gotten around to it yet; see newsboat/newsboat#314) @Rosika2, thanks for keeping digging! Can you try without (I understand Newsboat works fine, so technically I'm all done here, but I'm puzzled by Newsbeuter behaving like it does. It should work the same as Newsboat here, I don't see any material difference in this regard) |
Hi and thanks for the link,
You´re welcome. It´s my pleasure.
Yes, but only when using the Thank you so much for your help. |
I'm out of ideas now. :( Firejail profile looks okay to me, and if Newsbeuter works outside of Firejail, I don't see why it should fail inside it. Sorry for taking up so much of your time investigating this, @Rosika2.
Got it. @rusty-snake, perhaps newsboat.profile should include lynx.profile, so the default configuration works without any intervention from the user? I don't know anything about Firejail, though; if it's hard to "subtract" profiles later, i.e. deny access to lynx once the user switches to some other browser, I'd understand why lynx is not part of newsboat.profile. |
That´s really O.K. So thank you again for your help and persistence. |
@Minoru This would mean user-based installation derivement of the setup or dynamic loading. Additionally this would mean even more complexity on maintaining. |
I can't really follow this anymore, if there's anything left please post it. FYI: |
@rusty-snake: Greetings. Rosika |
@ALL: You wouldn´t believe but I finally got it running the way I wanted to. I took the command To be more precise: I used these firejail-options with
And now it worked. w3m opens up alright, plus: it doesn´t show "No Line" any more but displays the website correctly. Thanks again to all of you for your help. |
Hello everybody,
I´ve got a problem when running newsbeuter (RSS feed reader for the text console) in firejail.
My system is: BodhiLinux 5.1.0, 32bit (VM).
The command
firejail newsbeuter
itself works perfectly. The problem is that I cannot open a browser to read the feed contents.The interactive key-stroke "o" should provide for that. But pressing "o" yields nothing.
Yet all works well when running newsbeuter normally (i.e. not within the sandbox).
Example:
env BROWSER=lynx newsbeuter
works fine and lynx opes up within the terminal.env BROWSER=lynx firejail newsbeuter
runs newsbeuter alright but doesn´t trigger the browser.Surely there´s something that could be modified within the "newsbeuter.profile". But I´m stuck here.
Currently it looks like this:
Any help is much appreciated.
Thanks a lot in advance.
Greetings.
Rosika
The text was updated successfully, but these errors were encountered: