Magellan Linux

Diff of /mcore-src/trunk/mcore-tools/src/modules/idesk/idesk-generate-all-desktop-icons.in

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2371 by niro, Wed Aug 26 11:08:26 2015 UTC revision 2397 by niro, Fri Aug 28 09:12:06 2015 UTC
# Line 24  eval $(x11runas xinfo) Line 24  eval $(x11runas xinfo)
24  xres="${xorg_width}"  xres="${xorg_width}"
25  yres="${xorg_height}"  yres="${xorg_height}"
26    
27    # fallback to 800x600
28    [[ -z ${xres} ]] && xres="800"
29    [[ -z ${yres} ]] && xres="600"
30    
31  # top left edge of the icon is given in config file  # top left edge of the icon is given in config file
32  # remove a little bit to simulate the bottom-right edge  # remove a little bit to simulate the bottom-right edge
33  xres="$(( ${xres} - 120 ))"  xres="$(( ${xres} - 120 ))"
# Line 69  do Line 73  do
73   [ ${x} -ge ${xres} ] && x=50   [ ${x} -ge ${xres} ] && x=50
74   fi   fi
75    
76   ${MCORE_LIBDIR}/idesk-generate-icon --resource "${icon_resource}" --xres "${x}" --yres "${y}"   ${MCORE_LIBDIR}/idesk-generate-icon --add --resource "${icon_resource}" --xres "${x}" --yres "${y}"
77    
78   y=$((${y} + 80))   y=$((${y} + 80))
79  done  done
# Line 100  do Line 104  do
104   esac   esac
105    
106   ${MCORE_LIBDIR}/idesk-generate-icon \   ${MCORE_LIBDIR}/idesk-generate-icon \
107     --add \
108   --name "${name}" \   --name "${name}" \
109   --command "sudo /usr/sbin/${cmd}" \   --command "sudo /usr/sbin/${cmd}" \
110   --icon "${i}.png" \   --icon "${i}.png" \

Legend:
Removed from v.2371  
changed lines
  Added in v.2397