如何在启动时在 Ubuntu 中打开可视键盘 Onboard?

sij*_*ovw 8 onboard 12.04

我正在使用触摸屏处理应用程序。为此,我需要 Onboard(屏幕键盘)从 Ubuntu 的启动时间以固定的宽度和高度打开。我还需要获得用于放置 Onboard 的保留屏幕位置(这意味着 Onboard 不应位于任何应用程序窗口的前面)。我正在使用 Ubuntu 12.04 LTS。

我的系统中没有安装 Onboard。我通过sudo apt-get install onboard在终端中输入来安装它。它不能正常工作。现在,当我onboard在终端中输入时,系统会显示 Onboard 。当我关闭终端时,板载会自行关闭。

Pyt*_*ent 3

打开 Gedit 并输入:

#!/bin/bash
# you can change the size of the window below (1000x300)
onboard -s 1000x300
Run Code Online (Sandbox Code Playgroud)

现在将此文件保存为 filename.sh 并打开终端窗口。使用以下命令导航到此文件位置:

cd /home/user/blah/blah/../filename.sh
Run Code Online (Sandbox Code Playgroud)

当你到达那里时,输入

sudo chmod a+x 'filename.sh'
Run Code Online (Sandbox Code Playgroud)

(引号是为了避免空格字符问题)。现在您已将其设为可执行的 bash 脚本。从终端打开“gnome-session-properties”,然后单击“添加”

Name: Onboard
Command: "Browse to the file location"
Comment: Onboard on startup
Run Code Online (Sandbox Code Playgroud)

单击添加即可完成!注销并登录看看是否有效。