Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ob3 menu - Any Idea Why This Won't Work?
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
ions
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 235

PostPosted: Thu Aug 05, 2004 10:45 pm    Post subject: ob3 menu - Any Idea Why This Won't Work? Reply with quote

I can't get nano to start up to edit my userContent.css nor my menu.xml. The menu does appear but those commands do not work.

Here's the code:

Code:

<menu id="root-menu" label="Computer">
  <item label="aterm">
    <action name="Execute"><execute>aterm -tr -trsb -fg white -bg black -sh 40 +sb -fn 1x1</execute></action>
  </item>
  <item label="FireFox">
    <action name="Execute"><execute>firefox</execute></action>
  </item>
  <item label="Evolution">
    <action name="Execute"><execute>evolution</execute></action>
  </item>
  <separator />
  <menu id="internet-menu" />
  <menu id="apps-menu" />
  <menu id="games-menu" />
  <separator />
  <menu id="client-list-menu" />
  <separator />
  <item label="Edit userContent">
    <action name="Execute"><execute>nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css</execute></ac$
  </item>
  <item label="Edit ob3 Menu">
    <action name="Execute"><execute>sudo nano -w /etc/xdg/openbox/menu.xml</execute></action>
  </item>
  <item label="ObConf">
    <action name="Execute"><execute>obconf</execute></action>
  </item>
  <item label="Reconfigure">
    <action name="Reconfigure" />
  </item>
  <separator />
  <item label="Reboot">
    <action name="Execute"><execute>sudo /sbin/reboot</execute></action>
  </item>
  <item label="PowerOff">
    <action name="Execute"><execute>sudo /sbin/poweroff</execute></action>
  </item>
  <item label="Exit">
    <action name="Exit" />
  </item>
</menu>

</openbox_menu>
Back to top
View user's profile Send private message
affinity
n00b
n00b


Joined: 01 Jul 2004
Posts: 66

PostPosted: Thu Aug 05, 2004 11:14 pm    Post subject: Reply with quote

Code:
aterm -e nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css


BTW, you could use ~/.config/openbox/menu.xml instead of /etc/xdg/openbox/menu.xml.
Back to top
View user's profile Send private message
ions
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 235

PostPosted: Thu Aug 05, 2004 11:55 pm    Post subject: Reply with quote

Using aterm -e causes an aterm to pop up for a split second and then dissapears.
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


Joined: 05 Apr 2004
Posts: 5142
Location: Anaheim, CA (USA)

PostPosted: Fri Aug 06, 2004 1:21 am    Post subject: Reply with quote

Try
Code:
aterm -e "nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css"
That may fix it...
_________________
~~ Peter: Programmer, Mathematician, STEM & Free Software Advocate, Enlightened Agent, Transhumanist, Fedora contributor
Who am I? :: EFF & FSF
Back to top
View user's profile Send private message
ions
Apprentice
Apprentice


Joined: 16 Jul 2003
Posts: 235

PostPosted: Fri Aug 06, 2004 1:33 am    Post subject: Reply with quote

Nope. Aterm still blips onscreen quickly and is gone.
Back to top
View user's profile Send private message
blixel
Guru
Guru


Joined: 19 Jul 2004
Posts: 403
Location: Central, Florida

PostPosted: Fri Aug 06, 2004 3:06 am    Post subject: Re: ob3 menu - Any Idea Why This Won't Work? Reply with quote

ions wrote:
I can't get nano to start up to edit my userContent.css nor my menu.xml. The menu does appear but those commands do not work.


Make a shell script that does what you want and put it in your home directory. (I use ~/bin for my own custom shell scripts like that.) Then link to the shell script from your OB menu.

Create a shell script something like this

--
#!/bin/bash
aterm -e nano -w /home/chris/.mozilla/firefox/default.udh/chrome/userContent.css
---

Then edit your OB menu like this.

<item label="Put whatever you want here">
<action name="Execute"><execute>/home/chris/bin/launch-nano.sh</execute></action>
</item>
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum