Im launch ubuntu что это

Provided by: im-config_0.24-1ubuntu4_all
NAME
im-launch - launch input method end execute session program
SYNOPSIS
im-launch SESSION-PROGRAM
DESCRIPTION
The im-launch command is used to start a input method framework server daemon such as ibus-daemon, set up the appropriate environment variables for the client programs, and execute SESSION-PROGRAM such as x-session-manager. This command is usually not invoked from the console of a normal user but is normally invoked by the /etc/X11/Xsession.d/70im-config_launch.
TROUBLESHOOT
If you have any problem, see the first part of ~/.xsession-errors and look for the cause. If you are running im-config while Debian (sid) system is undergoing a major library transition, you may need to manually set up ~/.xinputrc with adjusted library version number etc. Please file a bug report to the im-config package using reportbug(1) describing your resolution experience.
SEE ALSO
im-config(8), /usr/share/doc/im-config/README.Debian.gz
AUTHOR
This manual page was written by Aron Xu aron@debian.org>, and Osamu Aoki osamu@debian.org> for the Debian GNU/Linux system (but may be used by others). IM-LAUNCH(1)
© 2019 Canonical Ltd. Ubuntu and Canonical are registered trademarks of Canonical Ltd.
Thread: What is im-launch ?
Gee! These Aren’t Roasted! 
Join Date May 2010 Location USA Beans 128 —> Beans 128
What is im-launch ?
I have been using Xubuntu for years and installed 19.10 yesterday.
I noticed a new autostart setting called «im-launch». It executes the following command:
sh -c 'if ! [ -e "/usr/bin/ibus-daemon" ] && [ "x$XDG_SESSION_TYPE" = "xwayland" ] ; then exec env IM_CONFIG_CHECK_ENV=1 im-launch true; fi'
What is this for? What will happen if I disable it?
October 18th, 2019 #2
Hooked on Manjaro 
Join Date Feb 2010 Location In My Food Forest Beans 9,318 —> Beans 9,318
Re: What is im-launch ?
Here’s the manpage for it. http://manpages.ubuntu.com/manpages/. -launch.1.html
Cheers & Beers, uRock
[SIGPIC][/SIGPIC]
- Site Areas
- Settings
- Private Messages
- Subscriptions
- Who’s Online
- Search Forums
- Forums Home
- Forums
- The Ubuntu Forum Community
- Ubuntu Official Flavours Support
- New to Ubuntu
- General Help
- Installation & Upgrades
- Hardware
- Desktop Environments
- Networking & Wireless
- Multimedia Software
- Ubuntu Specialised Support
- Ubuntu Development Version
- Security
- Virtualisation
- Ubuntu Servers, Cloud and Juju
- Server Platforms
- Ubuntu Cloud and Juju
- Gaming & Leisure
- Emulators
- Wine
- Development & Programming
- Packaging and Compiling Programs
- Development CD/DVD Image Testing
- Ubuntu Application Development
- Ubuntu Dev Link Forum
- Programming Talk
- Repositories & Backports
- Ubuntu Backports
- Bug Reports / Support
- Ubuntu Backports
- System76 Support
- Apple Hardware Users
- Ubuntu Community Discussions
- Ubuntu, Linux and OS Chat
- Recurring Discussions
- Full Circle Magazine
- The Cafe
- Cafe Games
- Market
- Mobile Technology Discussions (CLOSED)
- Announcements & News
- Weekly Newsletter
- Membership Applications
- The Fridge Discussions
- Forum Council Agenda
- Forum Feedback & Help
- Request a LoCo forum
- Resolution Centre
- Ubuntu, Linux and OS Chat
- Other Discussion and Support
- Other OS Support and Projects
- Other Operating Systems
- Ubuntu/Debian BASED
- Debian
- MINT
- Arch and derivatives
- Fedora/RedHat and derivatives
- Mandriva/Mageia
- Slackware and derivatives
- openSUSE and SUSE Linux Enterprise
- Mac OSX
- PCLinuxOS
- Gentoo and derivatives
- Windows
- BSD
- Any Other OS
- Other Operating Systems
- Assistive Technology & Accessibility
- Art & Design
- Education & Science
- Documentation and Community Wiki Discussions
- Tutorials
- Outdated Tutorials & Tips
- Ubuntu Women
- Ubuntu LoCo Team Forums
- Americas LoCo Teams
- Argentina Team
- Software
- Hardware
- Comunidad
- Arizona Team — US
- Arkansas Team — US
- Brazil Team
- California Team — US
- Canada Team
- Centroamerica Team
- Chile Team
- Comunidad
- Hardware
- Software
- Instalaci�n y Actualizaci�n
- Colombia Team — Colombia
- Georgia Team — US
- Illinois Team
- Indiana — US
- Kentucky Team — US
- Maine Team — US
- Minnesota Team — US
- Mississippi Team — US
- Nebraska Team — US
- New Mexico Team — US
- New York — US
- North Carolina Team — US
- Ohio Team — US
- Oklahoma Team — US
- Oregon Team — US
- Pennsylvania Team — US
- Peru Team
- Texas Team — US
- Uruguay Team
- Utah Team — US
- Virginia Team — US
- West Virginia Team — US
- Argentina Team
- Asia and Oceania LoCo Teams
- Australia Team
- Bangladesh Team
- Hong Kong Team
- Myanmar Team
- Philippine Team
- Singapore Team
- Europe, Middle East, and African (EMEA) LoCo Teams
- Albania Team
- Catalan Team
- Portugal Team
- Egypt Team
- Georgia Team
- Ireland Team — Ireland
- Kenyan Team — Kenya
- Kurdish Team — Kurdistan
- Lebanon Team
- Morocco Team
- Saudi Arabia Team
- Sudan Team
- Tunisia Team
- Other Forums & Teams
- LoCo Archive
- Afghanistan Team
- Alabama Team — US
- Alaska Team — US
- Algerian Team
- Andhra Pradesh Team — India
- Austria Team
- Bangalore Team
- Bolivia Team
- Cameroon Team
- Colorado Team — US
- Connecticut Team
- Costa Rica Team
- Delhi Team
- Ecuador Team
- El Salvador Team
- Florida Team — US
- Galician LoCo Team
- Greek team
- Hawaii Team — US
- Honduras Team
- Idaho Team — US
- Iowa Team — US
- Jordan Team
- Kansas Team — US
- Libya Team
- Louisiana Team — US
- Maryland Team — US
- Massachusetts Team
- Michigan Team — US
- Missouri Team — US
- Montana Team — US
- Namibia Team
- Nevada Team — US
- New Hampshire Team — US
- New Jersey Team — US
- Northeastern Team — US
- Panama Team
- Paraguay Team
- Qatar Team
- Quebec Team
- Rhode Island Team — US
- Senegal Team
- South Carolina Team — US
- South Dakota Team — US
- Switzerland Team
- Tamil Team — India
- Tennessee Team — US
- Trinidad & Tobago Team
- Uganda Team
- United Kingdom Team
- US LoCo Teams
- Venezuela Team
- Wales Team
- Washington DC Team — US
- Washington State Team — US
- Wisconsin Team
- Yemen Team
- Za Team — South Africa
- Zimbabwe Team
- Americas LoCo Teams
- Other OS Support and Projects
- Ubuntu Official Flavours Support
« Previous Thread | Next Thread »
Bookmarks
Bookmarks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
im-launch in Ubuntu startup
I found this im-launch startup entry after installing Ubuntu 19.10 which executes sh -c ‘if ! [ -e «/usr/bin/ibus-daemon» ] && [ «x$XDG_SESSION_TYPE» = «xwayland» ] ; then exec env IM_CONFIG_CHECK_ENV=1 im-launch true; fi’ I want to know the purpose of this entry and what would happend if i disabled it ?
- startup
- startup-applications
asked Nov 29, 2019 at 14:57
882 3 3 gold badges 9 9 silver badges 20 20 bronze badges
4 Answers 4
-e check the file /usr/bin/ibus-daemon exists or not? exist means true does not exist means false.
! wants to confirm above value is false if above value is true, it will not execute anything.
[ «x$XDG_SESSION_TYPE» = «xwayland» ] this can have either one of below values based on how you choose to login at the login screen. which session you will choose x11 or wayland.
«xx11» = «xwayland» «xwayland» = «xwayland»
example output of $XDG_SESSION_TYPE
administrator@pratap:~$ echo $XDG_SESSION_TYPE x11
administrator@pratap:~$ echo $XDG_SESSION_TYPE wayland administrator@pratap:~$
if the first expression is false and x$XDG_SESSION_TYPE = xwayland then exec the command env IM_CONFIG_CHECK_ENV=1 im-launch true
if the first expression is true or x$XDG_SESSION_TYPE is not equal to xwayland then don’t do anything.
! EXPRESSION EXPRESSION is false
-e FILE FILE exists
you can read more about what this command does then exec env IM_CONFIG_CHECK_ENV=1 im-launch true;
see man env & man im-launch
By default in Ubuntu 19.10 /usr/bin/ibus-daemon exists. so the command will not be executed.
env IM_CONFIG_CHECK_ENV=1 im-launch true
when there is the file /usr/bin/ibus-daemon and my session is x11
here is something about IM

when there is no file /usr/bin/ibus-daemon and my session is wayland
here is the thing which is different from above, which means the env is applied and then a chain reaction followed.

so, if you disable or enable this from startup list nothing happens unless no existence of this file /usr/bin/ibus-daemon and your session is wayland conditions are met.
597 1 1 gold badge 5 5 silver badges 20 20 bronze badges
answered Nov 29, 2019 at 15:23
22.2k 8 8 gold badges 61 61 silver badges 122 122 bronze badges
Thank you . I appreciate your detailed answer for my doubt . People like you makes askubuntu.com awesome .
Nov 30, 2019 at 9:21
Well, I can underdstand the syntax of the command — but in simple words: what does it do in the end? What is im-launch ?
Apr 24, 2020 at 6:56
I know how to use manpages. But man im-launch does not enlighten me. It seems very low level. Why does Ubuntu put this into my user-space start programs?
Apr 24, 2020 at 6:59
its kind of thing related to multi languages, keyboard layouts.. specially some kind of chinees, japanees.. etc.
Apr 24, 2020 at 7:01
I agree with foobar. I left being puzzled, I had to spend 25 minutes of reading the comment again and again till I get the aha! moment. It is a good, detailed answer, but not a beginner-wise. Thanks anyway for the effort.
Jan 31, 2021 at 22:57
I was doing some research on how to configure Ubuntu to make it more performant and ended up here, which is interesting.
My im-launch startup entry:
sh -c 'if [ "x$XDG_SESSION_TYPE" = "xwayland" ] ; then exec env IM_CONFIG_CHECK_ENV=1 im-launch true; fi'
As answer was detailed by @UnKNOWn but @foobar’s comment was my situation, so I took a deep dive.
Breaking The Command Down:
sh is a command language interpreter that executes commands read from a command line string, the standard input, or a specified file.
exec command in Linux is used to execute a command from the bash itself.
if CONDITION true THEN execute COMMAND
im-launch command is used to start a input method framework server daemon such a ibus-daemon, set up the appropriate environment variables for the client programs,and execute SESSION-PROGRAM such as x-session-manager.
ibus-daemon is a daemon program for ibus and it is also a start up program for users to activate ibus daemon, engines and panel.
daemon is a computer program that runs as a background process, rather than being under the direct control of an interactive user.
ibus is an intelligent input bus.
bus is simply a set of wires connecting multiple modules (processor, memory, IO devices).
The exec
Then my question was why do exec env when we are already execution the command from sh .
The exec command replaces the current shell process with the specified command. Normally, when you run a command a new process is spawned (forked), the exec command does not spawn a new process. Instead, the current process is overlaid with the new command. In other words the exec command is executed in place of the current shell without creating a new process.
Use of env — If you want to modify the environment for a program before executing the main program, you’d often write an script and at the end of it start the main program. But there is no need for the script to stay in memory at that time. So, exec is used in these cases so that, the main program can replace the mother script.
- What are possible use of exec command?
- https://stackoverflow.com/questions/18351198/what-are-the-uses-of-the-exec-command-in-shell-scripts
- https://unix.stackexchange.com/questions/265405/meaning-of-exec-env-command
Understanding im-launch in Ubuntu Startup: Purpose and Effects of Disabling

In this article, we will delve into the im-launch startup entry in Ubuntu, its purpose, and the potential effects of disabling it. This article is intended for system administrators and users with a basic understanding of Ubuntu and its startup process.
Quick Answer
Disabling the im-launch startup entry in Ubuntu can potentially affect the input methods on your system, particularly if you use non-Latin keyboard layouts or require complex character input. It is important to understand the purpose and effects of im-launch before making any changes to your system’s configuration.
Table of Contents
- What is im-launch?
- Breaking Down the im-launch Startup Entry
- Effects of Disabling im-launch
- Conclusion
What is im-launch?
The im-launch command in Ubuntu is part of the im-config package, which is used to manage input methods on your system. It is a script that launches the input method daemon and sets up the necessary environment variables. The im-launch startup entry is responsible for checking the display server type and the existence of the /usr/bin/ibus-daemon file. It determines whether to execute the im-launch command with specific environment variables.
Breaking Down the im-launch Startup Entry
- sh -c : This command is used to execute the following command in a subshell.
- if ! [ -e «/usr/bin/ibus-daemon» ] && [ «x$XDG_SESSION_TYPE» = «xwayland» ] : This if statement checks two conditions:
- ! [ -e «/usr/bin/ibus-daemon» ] checks if the /usr/bin/ibus-daemon file does not exist.
- [ «x$XDG_SESSION_TYPE» = «xwayland» ] checks if the value of the $XDG_SESSION_TYPE environment variable is equal to “wayland”.
This startup entry is used to ensure that the correct input method is used based on the type of display server and the existence of the ibus-daemon file.
Effects of Disabling im-launch
Disabling the im-launch startup entry would prevent the im-launch command from being executed during startup. The specific consequences of disabling it would depend on the purpose and functionality of the im-launch command in your system.
In general, disabling im-launch could potentially affect the input methods on your system, particularly if you are using a non-Latin keyboard layout or require complex character input. It could also impact applications that rely on specific input methods.
Before disabling im-launch , it’s important to understand its role in your system and consider any potential impact on your system’s functionality.
Conclusion
The im-launch startup entry in Ubuntu plays a crucial role in setting up the correct input method based on your system’s configuration. Disabling it could potentially affect your system’s input methods and overall functionality. Therefore, it’s crucial to understand its purpose and effects before making any changes.
Remember, it’s always a good practice to backup your system or create a restore point before making significant changes to your system’s configuration. If you’re unsure about the effects of disabling im-launch , consider seeking advice from a knowledgeable source or the Ubuntu community.
What is the purpose of the `im-launch` startup entry in Ubuntu?
The im-launch startup entry is responsible for setting up the correct input method based on the system’s configuration. It checks the display server type and the existence of the ibus-daemon file to determine the appropriate input method to use.
What is the `im-launch` command?
The im-launch command is a script in Ubuntu that launches the input method daemon and sets up the necessary environment variables. It is part of the im-config package, which is used to manage input methods on the system.
What happens if I disable the `im-launch` startup entry?
Disabling the im-launch startup entry would prevent the im-launch command from being executed during startup. This could potentially affect the input methods on your system, particularly if you use a non-Latin keyboard layout or require complex character input. It may also impact applications that rely on specific input methods.
How can I disable the `im-launch` startup entry?
To disable the im-launch startup entry, you can remove or comment out the corresponding line in the appropriate startup script. The specific location of the startup script may vary depending on your Ubuntu version and desktop environment.
Are there any alternatives to disabling `im-launch`?
Instead of disabling im-launch , you can modify its behavior by adjusting the conditions in the startup entry. For example, you can change the conditions to exclude specific display server types or modify the existence check for the ibus-daemon file. This allows you to customize the input method setup according to your needs without completely disabling it.
How can I determine if disabling `im-launch` will affect my system?
Before disabling im-launch , it’s important to understand its role in your system and consider any potential impact on your system’s functionality. You can consult the documentation of the im-config package or seek advice from the Ubuntu community or knowledgeable sources to understand the specific effects of disabling im-launch in your system.