Xfce Forum

Sub domains
 

You are not logged in.

#1 2006-09-19 14:42:21

rumbi_2006
Member
Registered: 2006-09-19
Posts: 2

XFCE4 MENU: "menu.xml" configuration

Hi,
I've a question of principle concerning to the ~/.config/xfce4/desktop/menu.xml .

Is it possible to run more than one command under cmd like

cmd="mount | grep -q value;result=$?; if [ $result == "xxx" ]; then do this; else do that; fi"

???

I try it, but it didn't work. In the shell prompt it act perfectly.

Thanks a lot!!!

Greetz
rumbi

Offline

#2 2006-09-19 17:46:35

stonecrest
Member
Registered: 2004-09-25
Posts: 32

Re: XFCE4 MENU: "menu.xml" configuration

You could presumably put all of that into a bash script and then just call the bash script.

Offline

#3 2006-09-19 18:55:51

rumbi_2006
Member
Registered: 2006-09-19
Posts: 2

Re: XFCE4 MENU: "menu.xml" configuration

Thanks!

But why isn't it possible to use the whole in the "menu.xml" ???
It's sort of weird.


Greetz
rumbi

Offline

#4 2006-09-20 06:59:34

gras
Member
From: Germany
Registered: 2005-10-30
Posts: 33
Website

Re: XFCE4 MENU: "menu.xml" configuration

Logical operators like & or | are only supported by the shells. You could do a

sh -c "mount | grep -q value; ..."

This could work


[img]http://www.us.debian.org/logos/button-mini.png[/img]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.011 seconds, 9 queries executed - Memory usage: 523.95 KiB (Peak: 524.79 KiB) ]