34 |
esac |
esac |
35 |
|
|
36 |
# get the resolution |
# get the resolution |
37 |
eval $(${x11runas} xinfo) |
xinfo=$(${x11runas} xinfo) |
38 |
xres="${xorg_width}" |
if [[ $? = 0 ]] |
39 |
yres="${xorg_height}" |
then |
40 |
|
eval ${xinfo} |
41 |
|
xres="${xorg_width}" |
42 |
|
yres="${xorg_height}" |
43 |
|
fi |
44 |
|
|
45 |
# fallback to 1024x768 |
# fallback to 1024x768 |
46 |
[[ -z ${xres} ]] && xres="1024" |
[[ -z ${xres} ]] && xres="1024" |
126 |
${sudo} ${MCORE_LIBDIR}/idesk-generate-icon \ |
${sudo} ${MCORE_LIBDIR}/idesk-generate-icon \ |
127 |
--add \ |
--add \ |
128 |
--name "${name}" \ |
--name "${name}" \ |
129 |
--command "sudo /usr/sbin/${cmd}" \ |
--command "sudo @@SBINDIR@@/${cmd}" \ |
130 |
--icon "${i}.png" \ |
--icon "${i}.png" \ |
131 |
--filename "${i}" \ |
--filename "${i}" \ |
132 |
--xpos "${x}" \ |
--xpos "${x}" \ |