Перейти к содержимому

Im launch ubuntu что это

  • автор:

Im launch ubuntu что это

bug

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 ?

rattskjelke is offlineGee! 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

uRock is offlineHooked 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
    1. Ubuntu Official Flavours Support
      1. New to Ubuntu
      2. General Help
      3. Installation & Upgrades
      4. Hardware
      5. Desktop Environments
      6. Networking & Wireless
      7. Multimedia Software
    2. Ubuntu Specialised Support
      1. Ubuntu Development Version
      2. Security
      3. Virtualisation
      4. Ubuntu Servers, Cloud and Juju
        1. Server Platforms
        2. Ubuntu Cloud and Juju
      5. Gaming & Leisure
        1. Emulators
      6. Wine
      7. Development & Programming
        1. Packaging and Compiling Programs
        2. Development CD/DVD Image Testing
        3. Ubuntu Application Development
        4. Ubuntu Dev Link Forum
        5. Programming Talk
        6. Repositories & Backports
          1. Ubuntu Backports
            1. Bug Reports / Support
      8. System76 Support
      9. Apple Hardware Users
    3. Ubuntu Community Discussions
      1. Ubuntu, Linux and OS Chat
        1. Recurring Discussions
        2. Full Circle Magazine
      2. The Cafe
        1. Cafe Games
      3. Market
      4. Mobile Technology Discussions (CLOSED)
      5. Announcements & News
      6. Weekly Newsletter
      7. Membership Applications
      8. The Fridge Discussions
      9. Forum Council Agenda
      10. Forum Feedback & Help
        1. Request a LoCo forum
      11. Resolution Centre
    4. Other Discussion and Support
      1. Other OS Support and Projects
        1. Other Operating Systems
          1. Ubuntu/Debian BASED
          2. Debian
          3. MINT
          4. Arch and derivatives
          5. Fedora/RedHat and derivatives
          6. Mandriva/Mageia
          7. Slackware and derivatives
          8. openSUSE and SUSE Linux Enterprise
          9. Mac OSX
          10. PCLinuxOS
          11. Gentoo and derivatives
          12. Windows
          13. BSD
          14. Any Other OS
      2. Assistive Technology & Accessibility
      3. Art & Design
      4. Education & Science
      5. Documentation and Community Wiki Discussions
      6. Tutorials
        1. Outdated Tutorials & Tips
      7. Ubuntu Women
      8. Ubuntu LoCo Team Forums
        1. Americas LoCo Teams
          1. Argentina Team
            1. Software
            2. Hardware
            3. Comunidad
          2. Arizona Team — US
          3. Arkansas Team — US
          4. Brazil Team
          5. California Team — US
          6. Canada Team
          7. Centroamerica Team
          8. Chile Team
            1. Comunidad
            2. Hardware
            3. Software
            4. Instalaci�n y Actualizaci�n
          9. Colombia Team — Colombia
          10. Georgia Team — US
          11. Illinois Team
          12. Indiana — US
          13. Kentucky Team — US
          14. Maine Team — US
          15. Minnesota Team — US
          16. Mississippi Team — US
          17. Nebraska Team — US
          18. New Mexico Team — US
          19. New York — US
          20. North Carolina Team — US
          21. Ohio Team — US
          22. Oklahoma Team — US
          23. Oregon Team — US
          24. Pennsylvania Team — US
          25. Peru Team
          26. Texas Team — US
          27. Uruguay Team
          28. Utah Team — US
          29. Virginia Team — US
          30. West Virginia Team — US
        2. Asia and Oceania LoCo Teams
          1. Australia Team
          2. Bangladesh Team
          3. Hong Kong Team
          4. Myanmar Team
          5. Philippine Team
          6. Singapore Team
        3. Europe, Middle East, and African (EMEA) LoCo Teams
          1. Albania Team
          2. Catalan Team
          3. Portugal Team
          4. Egypt Team
          5. Georgia Team
          6. Ireland Team — Ireland
          7. Kenyan Team — Kenya
          8. Kurdish Team — Kurdistan
          9. Lebanon Team
          10. Morocco Team
          11. Saudi Arabia Team
          12. Sudan Team
          13. Tunisia Team
        4. Other Forums & Teams
        5. LoCo Archive
          1. Afghanistan Team
          2. Alabama Team — US
          3. Alaska Team — US
          4. Algerian Team
          5. Andhra Pradesh Team — India
          6. Austria Team
          7. Bangalore Team
          8. Bolivia Team
          9. Cameroon Team
          10. Colorado Team — US
          11. Connecticut Team
          12. Costa Rica Team
          13. Delhi Team
          14. Ecuador Team
          15. El Salvador Team
          16. Florida Team — US
          17. Galician LoCo Team
          18. Greek team
          19. Hawaii Team — US
          20. Honduras Team
          21. Idaho Team — US
          22. Iowa Team — US
          23. Jordan Team
          24. Kansas Team — US
          25. Libya Team
          26. Louisiana Team — US
          27. Maryland Team — US
          28. Massachusetts Team
          29. Michigan Team — US
          30. Missouri Team — US
          31. Montana Team — US
          32. Namibia Team
          33. Nevada Team — US
          34. New Hampshire Team — US
          35. New Jersey Team — US
          36. Northeastern Team — US
          37. Panama Team
          38. Paraguay Team
          39. Qatar Team
          40. Quebec Team
          41. Rhode Island Team — US
          42. Senegal Team
          43. South Carolina Team — US
          44. South Dakota Team — US
          45. Switzerland Team
          46. Tamil Team — India
          47. Tennessee Team — US
          48. Trinidad & Tobago Team
          49. Uganda Team
          50. United Kingdom Team
          51. US LoCo Teams
          52. Venezuela Team
          53. Wales Team
          54. Washington DC Team — US
          55. Washington State Team — US
          56. Wisconsin Team
          57. Yemen Team
          58. Za Team — South Africa
          59. Zimbabwe Team

« 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

enter image description here

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.

enter image description here

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

Ubuntu 18

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

  1. What is im-launch?
  2. Breaking Down the im-launch Startup Entry
  3. Effects of Disabling im-launch
  4. 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.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *