在maemo中,程序界面是显示在xserver上的,所以在启动程序前,先配置一下xserver:

1  创建一个文件start_xserver.sh, 把如下语句填入:

Xephyr :2 -host-cursor -screen 800x480x16 -dpi 96 -ac -extension Composite

2 保存后退出,chmod +x ./start_xserver.sh

3 ./start_xserver.sh, 启动后的效果

4 /scratchbox/login, 登陆到scratchbox中,

5 在scratchbox中,链接到前面的xephyr上

新建一个文件: connect_to_xserver.sh, 把下面这句话填入

export DISPLAY=:2

chmod +x connect_to_xserver.sh

今后直接在scratchbox中运行 ./connect_to_xserver.sh中就可以了

[sbox-CHINOOK_X86: ~] > source ./connect_to_xserver.sh

6 在scratchbox中运行 af-sb-init.sh, 这个是启动maemo的一些后台服务,

[sbox-CHINOOK_X86: ~] > af-sb-init.sh start
Note: For remote X connections DISPLAY should contain hostname!
Sample files present.
Starting DBUS system bus
Starting D-BUS session bus daemon
Starting Maemo Launcher: maemo-launcher.
maemo-launcher: error rising the oom shield for pid=9479 status=5632
Starting Sapwood image server
Starting Matchbox window manager
sapwood-server[9492]: GLIB INFO default - server started
Starting clipboard-manager
Starting Keyboard
maemo-launcher: invoking '/usr/bin/hildon-input-method.launch'
Starting Hildon Desktop
maemo-launcher: invoking '/usr/bin/hildon-desktop.launch'
[sbox-CHINOOK_X86: ~] > /home/test/.osso/current-gtk-key-theme:1: Unable to find include file: "keybindings.rc"
/home/test/.osso/current-gtk-key-theme:1: Unable to find include file: "keybindings.rc"
hildon-input-method[9534]: GLIB MESSAGE default - ui up and running
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
Audio File Library: could not open file '/usr/share/sounds/ui-window_open.wav' [error 3]
Audio File Library: could not open file '/usr/share/sounds/ui-window_close.wav' [error 3]
hello-world initialize (nil) 0
hildon-desktop[9551]: GLIB DEBUG default - Setting name to GtkButton
hello-world settings
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin
hildon-desktop[9551]: GLIB WARNING ** default - Plugin desktop file not found, ignoring plugin

这时,在xserver上就可以看到一个maemo的初始画面了:

Maemo中如何启动应用程序。相关推荐

  1. Qt中直接启动.exe程序,错误提示:无法启动此程序,因为计算机中丢失Qt5Core.dll。尝试重新安装该程序以解决此问题

    双击.exe程序 错误现象: 方法一: 一般客户使用时,让他安装qt太麻烦 找到Qt安装目录下的bin目录 拷贝库文件:Qt5Core.dll,Qt5Gui.dll,Qt5Widgets.dll,li ...

  2. 无法启动此程序,因为计算机中丢失 MSVCP120.dll。尝试安装该程序以解决此问题

    无法启动此程序,因为计算机中丢失 MSVCP120.dll.尝试安装该程序以解决此问题 参考文章: (1)无法启动此程序,因为计算机中丢失 MSVCP120.dll.尝试安装该程序以解决此问题 (2) ...

  3. PB程序“无法启动此程序,因为计算机中丢失PBvm90.dll。尝试重新安装该程序以解决此问题”的解决方法

    PB程序"无法启动此程序,因为计算机中丢失PBvm90.dll.尝试重新安装该程序以解决此问题"的解决方法 参考文章: (1)PB程序"无法启动此程序,因为计算机中丢失P ...

  4. 电脑安装python为什么显示的是程序丢失-python报错:无法启动此程序,因为计算机中丢失...

    原标题:python报错:无法启动此程序,因为计算机中丢失 python报错:无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll api-ms-win- ...

  5. 无法启动此程序因为计算机中丢失msvcr110,无法启动此程序因为计算机中丢失msvcr110,教您无法运行程序提示计算机中丢失...

    用户在一次运行某程序时,运到"无法启动此程序,因为计算机中丢失msvcr.dll.尝试重新安装该程序以解决此问题."的提示,当时很无语,因为系统是刚刚安装好的,怎么处理呢?下面,小 ...

  6. .Net 中 获取当前应用程序启动目录的几个方法和Path.Combine 细节

    一. .Net 中 获取当前应用程序启动目录的几个方法 AppDomain.CurrentDomain.BaseDirectory  代表的是程序集所在的目录,它具有读取和写入的属性. AppDoma ...

  7. python无法启动该程序因为计算机中丢失_python报错:无法启动此程序,因为计算机中丢失...

    原标题:python报错:无法启动此程序,因为计算机中丢失 python报错:无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll api-ms-win- ...

  8. python无法启动此程序因为计算机中丢失_python报错:无法启动此程序,因为计算机中丢失...

    原标题:python报错:无法启动此程序,因为计算机中丢失 python报错:无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll api-ms-win- ...

  9. 安装apache服务出错,无法启动此程序,因为计算机中丢失VCRUNTIME140.dll 尝试重新安装此程序以解决此问题...

    错误信息:无法启动此程序,因为计算机中丢失VCRUNTIME140.dll 尝试重新安装此程序以解决此问题 错误场景:在使用["D:\Program Files\httpd-2.4.20-x ...

最新文章

  1. 《http权威指南》读书笔记 二
  2. R语言使用ggplot2包使用geom_dotplot函数绘制分组点图(双分类变量分组可视化)实战(dot plot)
  3. 北京邮电大学计算机学院交换组,李静林-交换骨干教师-网络与交换技术国家重点实验室...
  4. raft协议中统计一条log被多少节点复制
  5. VFP访问外部数据源的几种方法
  6. 炒股一年,本金18万已亏损10万,还要不要继续?
  7. 玩转Android---组件篇---Broadcast Receiver(广播接收器)
  8. App测试工具列表整理
  9. 解决远程桌面无法全屏的方法
  10. 计算机怎么无线连接网络地址,电脑怎么设置无线网络ip地址
  11. 解析下载blob视频
  12. 【2072】歌手大奖赛
  13. 单片机万年历阴阳历c语言,单片机阴历阳历c算法万年历.pdf
  14. linux 五种 IO 模型
  15. 《Android开发卷——设置圆形头像,Android截取圆形图片》
  16. 数据驱动决策:如何用数据分析推动业务增长
  17. 什么是蛮力攻击,您能做什么来防止这些攻击的发生?
  18. 蓝牙4.0设计 CC2540
  19. Android Paint set方法详解
  20. 算法模型好坏、评价标准、算法系统设计

热门文章

  1. 去大学里当老师的待遇怎么样?
  2. 离散余弦变换(Discrete Cosine Transform)
  3. 15种顶级分析思维模型,真的顶!
  4. um是代表什么意思_电池上的UM是什么意思?这个系列的电池是如 – 手机爱问
  5. 老黄因ChatGPT大赚311亿/ 中国移动公布实名NFT交易专利/C919首航航班确定...今日更多新鲜事在此...
  6. 金桂香二度,橘黄蟹正肥,最是一年好景时
  7. 有技术含量的博客地址
  8. 阶乘逆元与组合数模板
  9. CTS 问题 第一篇
  10. 2D横版跳跃游戏第一节