Michel Hoogervorst wrote:
> Hi,
> 
> I'm trying to make a submenu for external commands, but can't figure out
> how.
> The Wiki sais I can use the variable 'COMMANDS_DIR' to set up a folder
> with fxd-files for external commands:
> http://freevo.sourceforge.net/cgi-bin/doc/CommandsFxd

Have you activated the plugin?
plugin.activate('command', level=48)

AFAIK the level controls the order of the menu items.

A fxd file in the COMMANDS_DIR is something like.
<?xml version="1.0" ?>
<freevo>
    <command title="Pause automatic shutdown">
        <cmd>touch /var/cache/freevo/suspend-user</cmd>
        <info>
            <content>Touches the suspend-user file</content>
        </info>
    </command>
</freevo>

Note: characters like '&' in the cmd block need to be expressed as &amp;

> 
> But I can't get it to work, and see no errors in the log files.
> 
> Could anyone explain this?

Duncan


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Freevo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/freevo-users

Reply via email to