LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   K Menu - calling html/webpage file from menu (http://www.linuxquestions.org/questions/linux-desktop-74/k-menu-calling-html-webpage-file-from-menu-476657/)

sKAApGIF 08-23-2006 02:38 PM

K Menu - calling html/webpage file from menu
 
I want to add a link into KDE's menu (K Menu), to an html file that's stored locally (offline). What would I use as command for example the file: /folder/file.html to make it open in a browser if the menu item is clicked?

KenJackson 08-23-2006 03:22 PM

The command to open (for example) /home/user/html/file.html in konqueror is
Code:

/usr/bin/konqueror --profile webbrowsing file:///home/user/html/file.html
To open it in Firefox (adjust to your path, of course):
Code:

/usr/local/bin/firefox file:///home/user/html/file.html
I don't know if it's necessary to specify the path or not. I haven't used KDE for a while.

sKAApGIF 08-24-2006 08:15 AM

Thanks does the trick :)


All times are GMT -5. The time now is 05:18 PM.