You are not logged in.

#1 2019-11-13 23:26:04

makarovnik
Member
Registered: 2019-03-28
Posts: 25

[SOLVED] Openbox Menu item link to open man page

I am trying to create an openbox menu item that will open a man page. The execute command I'm trying to use (which doesn't work) is:

x-terminal-emulator man feh

I've tried variations with single quotes and semi colon between commands but I just can't figure out the syntax. man feh works fine when run in terminal.

Any help would be appreciated. BTW I'm a rookie.

Last edited by makarovnik (2019-11-26 04:44:57)

Offline

#2 2019-11-13 23:32:48

damo
....moderator....
Registered: 2015-08-20
Posts: 5,275

Re: [SOLVED] Openbox Menu item link to open man page

You need to pass the command to x-terminal-emulator. Try this...

x-terminal-emulator -T "feh man page" -e man feh

Be Excellent to Each Other...

FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt  «» BunsenLabs on DeviantArt

Online

#3 2019-11-14 00:54:54

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,217

Re: [SOLVED] Openbox Menu item link to open man page

+1 damo. smile

This worked for what you're asking about in menu.xml here. The relevant snippet.

<action name="Execute"><execute>x-terminal-emulator -e 'man feh'</execute></action>

Dang it PS, you also need to logout/in to reload the openbox configs. Or someone can pop open a terminal in current session and run "openbox --reconfigure" or "openbox --restart", there's also "openbox --exit" too. Other such junk, just getting this in here cause it's cool knowing how to mess with openbox like that in terminal. Good cmds to know and can come in handy. Plus you'll look like a techno-ninja to your friends. Women dig geeks, it's a fact ! smile

Last edited by BLizgreat! (2019-11-14 01:12:05)

Offline

#4 2019-11-14 04:46:55

makarovnik
Member
Registered: 2019-03-28
Posts: 25

Re: [SOLVED] Openbox Menu item link to open man page

Thanks guys.

Last edited by makarovnik (2019-11-14 04:58:46)

Offline

#5 2019-11-14 11:22:40

BLizgreat!
Resident Babbler - vll!
Registered: 2015-10-03
Posts: 1,217

Re: [SOLVED] Openbox Menu item link to open man page

^ Welcome fellow nixer. smile

Offline

#6 2019-11-14 12:00:12

clusterF
Member
Registered: 2019-05-07
Posts: 322

Re: [SOLVED] Openbox Menu item link to open man page

And if you want to keep the terminal session after quiting the "man feh" do...

x-terminal-emulator -T "feh man page" -e "bash -c 'man feh;$SHELL'"
<action name="Execute"><execute>x-terminal-emulator -T "feh man page" -e "bash -c 'man feh;$SHELL'"</execute></action>

"Common sense is like deodorant, those who need it the most never use it."

git: clusterF

Offline

Board footer

Powered by FluxBB