Maemo中如何启动应用程序。
在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中如何启动应用程序。相关推荐
- Qt中直接启动.exe程序,错误提示:无法启动此程序,因为计算机中丢失Qt5Core.dll。尝试重新安装该程序以解决此问题
双击.exe程序 错误现象: 方法一: 一般客户使用时,让他安装qt太麻烦 找到Qt安装目录下的bin目录 拷贝库文件:Qt5Core.dll,Qt5Gui.dll,Qt5Widgets.dll,li ...
- 无法启动此程序,因为计算机中丢失 MSVCP120.dll。尝试安装该程序以解决此问题
无法启动此程序,因为计算机中丢失 MSVCP120.dll.尝试安装该程序以解决此问题 参考文章: (1)无法启动此程序,因为计算机中丢失 MSVCP120.dll.尝试安装该程序以解决此问题 (2) ...
- PB程序“无法启动此程序,因为计算机中丢失PBvm90.dll。尝试重新安装该程序以解决此问题”的解决方法
PB程序"无法启动此程序,因为计算机中丢失PBvm90.dll.尝试重新安装该程序以解决此问题"的解决方法 参考文章: (1)PB程序"无法启动此程序,因为计算机中丢失P ...
- 电脑安装python为什么显示的是程序丢失-python报错:无法启动此程序,因为计算机中丢失...
原标题:python报错:无法启动此程序,因为计算机中丢失 python报错:无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll api-ms-win- ...
- 无法启动此程序因为计算机中丢失msvcr110,无法启动此程序因为计算机中丢失msvcr110,教您无法运行程序提示计算机中丢失...
用户在一次运行某程序时,运到"无法启动此程序,因为计算机中丢失msvcr.dll.尝试重新安装该程序以解决此问题."的提示,当时很无语,因为系统是刚刚安装好的,怎么处理呢?下面,小 ...
- .Net 中 获取当前应用程序启动目录的几个方法和Path.Combine 细节
一. .Net 中 获取当前应用程序启动目录的几个方法 AppDomain.CurrentDomain.BaseDirectory 代表的是程序集所在的目录,它具有读取和写入的属性. AppDoma ...
- python无法启动该程序因为计算机中丢失_python报错:无法启动此程序,因为计算机中丢失...
原标题:python报错:无法启动此程序,因为计算机中丢失 python报错:无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll api-ms-win- ...
- python无法启动此程序因为计算机中丢失_python报错:无法启动此程序,因为计算机中丢失...
原标题:python报错:无法启动此程序,因为计算机中丢失 python报错:无法启动此程序,因为计算机中丢失api-ms-win-crt-runtime-|1-1-0.dll api-ms-win- ...
- 安装apache服务出错,无法启动此程序,因为计算机中丢失VCRUNTIME140.dll 尝试重新安装此程序以解决此问题...
错误信息:无法启动此程序,因为计算机中丢失VCRUNTIME140.dll 尝试重新安装此程序以解决此问题 错误场景:在使用["D:\Program Files\httpd-2.4.20-x ...
最新文章
- 《http权威指南》读书笔记 二
- R语言使用ggplot2包使用geom_dotplot函数绘制分组点图(双分类变量分组可视化)实战(dot plot)
- 北京邮电大学计算机学院交换组,李静林-交换骨干教师-网络与交换技术国家重点实验室...
- raft协议中统计一条log被多少节点复制
- VFP访问外部数据源的几种方法
- 炒股一年,本金18万已亏损10万,还要不要继续?
- 玩转Android---组件篇---Broadcast Receiver(广播接收器)
- App测试工具列表整理
- 解决远程桌面无法全屏的方法
- 计算机怎么无线连接网络地址,电脑怎么设置无线网络ip地址
- 解析下载blob视频
- 【2072】歌手大奖赛
- 单片机万年历阴阳历c语言,单片机阴历阳历c算法万年历.pdf
- linux 五种 IO 模型
- 《Android开发卷——设置圆形头像,Android截取圆形图片》
- 数据驱动决策:如何用数据分析推动业务增长
- 什么是蛮力攻击,您能做什么来防止这些攻击的发生?
- 蓝牙4.0设计 CC2540
- Android Paint set方法详解
- 算法模型好坏、评价标准、算法系统设计