mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-09 09:07:44 +00:00
Merge pull request #5631 from keymanapp/fix/linux/startup
fix(linux): Fix launch of km-config
This commit is contained in:
commit
ac5b64a413
3 changed files with 14 additions and 7 deletions
|
|
@ -3,7 +3,7 @@ Name=Keyman Keyboards
|
|||
Name[en_GB]=Keyman Keyboards
|
||||
Comment=Configure Keyman keyboards
|
||||
Comment[en_GB]=Configure Keyman keyboards
|
||||
Exec=km-config -i %u
|
||||
Exec=km-config %u
|
||||
Icon=km-config
|
||||
Terminal=false
|
||||
Type=Application
|
||||
|
|
|
|||
|
|
@ -12,7 +12,11 @@ if __name__ == '__main__':
|
|||
versionstring = "%s (package version %s)" % (__versionwithtag__, __pkgversion__)
|
||||
else:
|
||||
versionstring = "%s" % __versionwithtag__
|
||||
parser = argparse.ArgumentParser(description='Keyman keyboards installation and information')
|
||||
parser = argparse.ArgumentParser(description='km-config shows the currently installed ' +
|
||||
'Keyman keyboard packages and allows you to view ' +
|
||||
'information about them. It enables you to download new ' +
|
||||
'keyboard packages from the website or install from ' +
|
||||
'local files.')
|
||||
parser.add_argument('--version', action='version', version='%(prog)s version ' + versionstring)
|
||||
parser.add_argument('-v', '--verbose', action='store_true', help='verbose logging')
|
||||
parser.add_argument('-vv', '--veryverbose', action='store_true', help='very verbose logging')
|
||||
|
|
@ -20,6 +24,11 @@ if __name__ == '__main__':
|
|||
'package. INSTALL can either be a downloaded .kmp file, a file:// URL ' +
|
||||
'pointing to a .kmp file, or a keyman:// URL, possibly with a ' +
|
||||
'bcp47=<language> specified.')
|
||||
parser.add_argument('url', nargs='?', default='', metavar='INSTALL',
|
||||
help='download and/or install .kmp ' +
|
||||
'package. INSTALL can either be a downloaded .kmp file, a file:// URL ' +
|
||||
'pointing to a .kmp file, or a keyman:// URL, possibly with a ' +
|
||||
'bcp47=<language> specified.')
|
||||
|
||||
args = parser.parse_args()
|
||||
if args.verbose:
|
||||
|
|
@ -31,6 +40,8 @@ if __name__ == '__main__':
|
|||
|
||||
if args.install:
|
||||
download_and_install_package(args.install)
|
||||
elif args.url:
|
||||
download_and_install_package(args.url)
|
||||
else:
|
||||
from keyman_config.view_installed import ViewInstalledWindow
|
||||
w = ViewInstalledWindow()
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
[=DESCRIPTION]
|
||||
[<DESCRIPTION]
|
||||
Keyman makes it possible for you to type in over 1,000 languages on Windows, Linux,
|
||||
macOS, iPhone, iPad, Android tablets and phones, and even instantly in your web browser.
|
||||
|
||||
With the world's most powerful keyboarding engine, intuitive and rapid text input is now
|
||||
possible in your language, and for over 99% of the global population's mother tongues!
|
||||
|
||||
km-config shows the currently installed Keyman keyboard packages and allows you to
|
||||
view information about them. It enables you to download new keyboard packages from
|
||||
the website or install from local files.
|
||||
|
||||
[SEE ALSO]
|
||||
km-package-install(1)
|
||||
km-package-list-installed(1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue