You are not logged in.
Just wondering if anyone knows how to add an openbox menu item to open a specific ("static") URL in a browser
I know I've done this before, but can't remember how I did it. I also can't find my answer on Google or in the forums here, but if it is already answered you can just forward me to the page ![]()
Thanks!
Last edited by damo (2017-03-19 13:02:11)
Offline
This works for me:
~/.config/openbox/menu.xml:
<item label="bunsenlabs.org">
<action name="Execute">
<execute>x-www-browser bunsenlabs.org</execute>
</action>
</item>EDIT: ha! That's the broken version of obmenu that I've used...
@damo's answer gives the correct syntax.
Last edited by Head_on_a_Stick (2017-03-19 12:50:19)
Offline
<item label="URL">
<action name="Execute">
<command>
x-www-browser "http://your-url-here/"
</command>
</action>
</item>
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
Thank you kindly sirs, worked perfectly!
Offline
NB "<execute>" is deprecated syntax, and <command> should now be used. BL ships a patched version of obmenu which is compatible with the newer syntax - the versions in the Debian jessie/stretch haven't been fixed yet.
Next time, you can add [SOLVED] yourself, by editing the title of your first post ![]()
Be Excellent to Each Other...
The Bunsenlabs Lithium Desktop » Here
FORUM RULES and posting guidelines «» Help page for forum post formatting
Artwork on DeviantArt «» BunsenLabs on DeviantArt
Offline
You can also use the Open Desktop/XDG standard way xdg-open:
<item label="URL">
<action name="Execute">
<command>
xdg-open "http://your-url-here/"
</command>
</action>
</item>The x-www-browser method is only suited to Debian and RedHat derivatives using /etc/alternatives. Xdg-open is distro- and desktop-agnostic (if you find yourself in the Arch or Gentoo universes).
It can also open files according to the mime-assigned applications (~/.config/mimeapps.list), particularly useful when applications don't have defined x-* (or bl-*) alternatives. Example:
xdg-open /path/to/mydocument.odtwould start whatever office/document app is your default.
Offline