Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Enligtenment User Application List
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
fender1212
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 165

PostPosted: Mon Oct 04, 2004 10:24 pm    Post subject: Enligtenment User Application List Reply with quote

alright, i'm having a little trouble here. whenever i install new programs, they don't show up in the enlightenment user application list. only the apps i had installed before i emerged enlightenment are there. any help?
Back to top
View user's profile Send private message
codergeek42
Bodhisattva
Bodhisattva


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

PostPosted: Mon Oct 04, 2004 10:28 pm    Post subject: Reply with quote

You could try

Middle click on the desktop --> Maintanence --> Regenerate Menus

Though I don't remember exactly if that's what it is. You could always manually open up $HOME/.enlightenment/user_apps.menu in your favorite text editor then add
Code:
"Application Name" "/path/to/icon/or/null/for/none.png" exec "/path/to/app/binary"
Hth!
_________________
~~ 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
fender1212
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 165

PostPosted: Mon Oct 04, 2004 10:39 pm    Post subject: Reply with quote

alright thanks, and i also had one other problem, if i run startx under root enlightenment will start up, but if i run startx under my user enlightenment won't start up
Back to top
View user's profile Send private message
pwhitt
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2003
Posts: 85

PostPosted: Mon Oct 04, 2004 10:53 pm    Post subject: Reply with quote

Hi. I've been using e for some time now and love it.

Regenerating menus from the middle-click is only good for picking up changes you have made to the menu flat files in ~/.enlightenment/. If you'd like menus made for you automatically, try using genmenu - it's in portage. This will ask a few questions and then build a set of menus for you which you may then edit with e16menuedit, also in portage.

Personally, I'd suggest building your own menus with the apps you know you'd use, executed with the flags you know you'd run them with from the prompt. You can tailor the menus and the commands they run from e16menuedit, but the menus are quite large and will undoudtedly be bigger than you need. I'm sure it will miss a few things as well. You may also look into e16keyedit, which sets your key bindings.

As for your startx problem, check for the following in your ~/.xinitrc:
Code:
[ pwhitt@MrBlack  6:51PM ]~$ cat .xinitrc

# Enlightenment exec string
exec /usr/bin/enlightenment

# Fluxbox exec string
#exec fluxbox

# start up with g-term
#gnome-terminal --geometry=110x18+245+772


.xinitrc determines what X starts when it runs. I imagine another window manager has written some other startup line in your file. If so, just comment it out and add the line regarding /usr/bin/enlightenment

Hope that helps!
Back to top
View user's profile Send private message
fender1212
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 165

PostPosted: Tue Oct 05, 2004 12:17 am    Post subject: Reply with quote

i wrote my .xinitrc file myself. the only line in it is
exec /usr/bin/enlightenment
Back to top
View user's profile Send private message
pwhitt
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2003
Posts: 85

PostPosted: Tue Oct 05, 2004 1:27 am    Post subject: Reply with quote

that's truly odd...

what happens exactly? do you just get twm? are there any errors burped into your xfree/xorg log?
Back to top
View user's profile Send private message
fender1212
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 165

PostPosted: Tue Oct 05, 2004 5:27 am    Post subject: Reply with quote

yah i just get twm, and there are no errors in the log. also, i tried the genmenu you suggested, but i don't like it because it didn't load a huge number of apps i use on a regular basis, and i don't know how to add apps to it, as it doesn't read off the .enlightenment/user_apps.menu anymore, so i did "emerge unmerge genmenu" and it unmerged succesfully, but it still isn't reading off of .enlightenment/user_apps.menu. how do i fix this, and how do i fix the other problem
Back to top
View user's profile Send private message
pwhitt
Tux's lil' helper
Tux's lil' helper


Joined: 25 Nov 2003
Posts: 85

PostPosted: Wed Oct 06, 2004 12:50 am    Post subject: Reply with quote

ok- for the genmenu issue, i would suggest you use e16menuedit. it allows you to completely customise the menus to your liking, using a graphical interface. i *believe* it allows you to change the files pointed to for the menu. if not, the file format should be the same and you can edit the new genmenu menu in the same way. personally, i prefer fluxbox's menu format and have never been too enthralled with e's, so used genmenu to set up the format and put a lot of things in it, then i edit with e16menuedit to tailor to my liking. it's pretty intuitive and allows complete control over menu contents.

as for the problem starting e, i'm baffled. i suppose you can start e from twm, so obviously you are pointed to the correct executable and permissions aren't messed up... here is what i would try if you want a brute-force solution. since you're unhappy with what genmenu has done anyway, move your ~/.enlightenment to ~/.enlightenment.bak and then move your .xinitrc to .xinitrc.bak

then logout of X and start enlightenment with starte16. now, i'm basing the next few statements on my memories of e's behavior. i've not had this happen in many months, so i could be wrong since my ~/.enlightnement dir is years old and i've not changed much of this until the menus recently... when you start e for the first time, it should ask you if you want to edit your .xinitrc file. tell it to modify whatever files it needs. it will also create your prefs directory from scratch as well as the original menus. after that, it shoud behave like a new installation.

sorry i can't fix your problem without resorting to such brutal tactics... but that is what i would do. you can always copy your iconprefs and backgrounds over from your old directory once you get it to start properly.
Back to top
View user's profile Send private message
burmashave
Tux's lil' helper
Tux's lil' helper


Joined: 01 Dec 2002
Posts: 82

PostPosted: Sun Oct 31, 2004 10:34 pm    Post subject: Script that adds an item to an E menu Reply with quote

If anyone's looking for a way to add E menu items from the command line, I wrote a script that adds entries to my E menus. It prompts for the menu, title for the entry and the executable. It also adds each item to a global menu called 'all_apps.menu', but this can be disabled. To set it up, you'll need to set Enlightenment home in the 'User Config' section of the script.

Code:
#!/bin/sh
#
# add_menu.sh
#
# USAGE
#     add_menu.sh
#
#     Adds a menu item to an Enlightenment menu and reloads E menus.
#
#     add_menu.sh prompts for:
#       - Enlightenment menu to which the command should be added
#       - Title to appear in the menu
#       - Executable to be run
#
# NOTES
#     Enlightenment home must be specified in the User Config section
#     of this script.
#
#     Script looks for Enlightenment menus only in Enlightenment home.
#     Sub-directories in Enlightenment home are not searched.
#
#     Icons are not added to menus.
#
#     Script has option (default=true) to duplicate each item to a menu
#     named "all_apps.menu".
#
#     This script will not work properly for executable paths that require
#     escape sequences (such as are required to run Wine apps).
#     
#
# Feel Free to use, modify and share
#
# Last modified 31 October 2004
#
#


######### BEG User Config #############################################
#                                                                     #

# Enlightenment Home
e_home=/home/me/.enlightenment

# Add every item to global "all_apps.menu" (1=yes, 0=no)
add_to_all_apps=1

# Path to eesh
eesh_path=/usr/bin/eesh

# Use color in output (1=yes, 0=no)
use_color=1

#                                                                     #
######### END User Config #############################################


# Text colors
if [ "$use_color" -eq 1 ]
  then
    col_green="\033[1;32m"
    col_red="\033[1;31m"
    col_bold="\033[1m"
    col_normal="\033[0;39m"
  else
    col_green=""
    col_red=""
    col_bold=""
    col_normal=""
  fi
 
# Handle errors
error_handle () {
      err_msg="${1:-"An error was encountered."}"
      echo -e "${col_red}${err_msg}${col_normal}"
      echo -e "${col_red}${0} Exiting.${col_normal}"
      exit 1
}

# Do sanity checks
if [ ! -w $e_home ]
  then
    error_handle "$e_home does not exist, or user does not have write permissions to it."
  fi
 
if [ ! -x $eesh_path ]
  then
    error_handle "$eesh_path does not exist, or is not executable."
  fi

# Get Enlightenment menu files
all_menu_files=(`ls $e_home | grep "\.menu$"`)

# Remove all_apps.menu from array if exist
e_menu_files=()
for e_menu_file in "${all_menu_files[@]}"
  do
    if [ "$e_menu_file" != "all_apps.menu" ]
      then
        e_menu_files=("${e_menu_files[@]}" "$e_menu_file")
      fi
  done
 
# Create matching array of menu titles
e_menu_titles=()
for e_menu_file in "${e_menu_files[@]}"
  do
    title=`sed -ne '1p' ${e_home}/${e_menu_file}`
    title="${title#\"}"
    title="${title%\"}"
    e_menu_titles=("${e_menu_titles[@]}" "$title")
  done

# Prompt for menu name
echo
echo -e "${col_green}Enlightenment Menus:${col_normal}"
echo
selection=1
for e_menu_title in "${e_menu_titles[@]}"
  do
    echo -e "${col_green}${selection}) ${col_normal}${e_menu_title}"
    let "selection = $selection + 1"
  done
echo
echo -ne "${col_green}Choose a menu number > ${col_normal}"
read sel_num

# Validate menu name selection
case "$sel_num" in
  *[^0-9]*) error_handle "Not a valid selection." ;;
         *) if [ $sel_num -gt ${#e_menu_titles[@]} ]
              then
                error_handle "Not a valid selection."
              fi ;;
  esac
 
# Prompt for title
echo
echo -ne "${col_green}Title to appear in menu > ${col_normal}"
read sel_title

# Prompt for executable
echo
echo -ne "${col_green}Executable to be run > ${col_normal}"
read sel_path

# Check that non-args part of string is in path, exists and is executable
has_args=`echo "$sel_path" | grep -c ' '`
if [ $has_args -ne 0 ]
  then
    exe_path=`expr "$sel_path" : '\([^ ]*\) '`
  else
    exe_path="$sel_path"
  fi
which $exe_path > /dev/null 2>&1
if [ $? -ne 0 ]
  then
    error_handle "$exe_path is not in PATH, does not exist or is not executable."
  fi

# Create string for menu
menu_str="\"$sel_title\"\tNULL\texec\t\"$sel_path\""
let "sel_num = $sel_num - 1"
sel_menu="${e_home}/${e_menu_files[$sel_num]}"
all_menu="${e_home}/all_apps.menu"

# Add item to menu and all_apps.menu if set
echo -e "$menu_str" >> $sel_menu
if [ $add_to_all_apps -eq 1 ]
  then
    echo -e "$menu_str" >> $all_menu
  fi

# Provide finished message and reload menus
echo
echo -e "${col_green}Finished: Reloading menus.${col_normal}"
echo
$eesh_path -e reload_menus

exit 0
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