How to prevent dbus from setting environment variablesWhere to declare environment variables?Ubuntu adding path/Environment variablessetting system variables through terminalChanging environment variablesProblem with environment variableshow to export folder specific environment variables?How do i efficiently use environment variables?Listing environment variables of a particular SHELLCan't properly reset environment variablesHow to find the source definition of an environment variable?

How does a sound wave propagate?

Why is there an extra space when I type "ls" on the Desktop?

Why do we say 'Pairwise Disjoint', rather than 'Disjoint'?

How would an energy-based "projectile" blow up a spaceship?

Was it really inappropriate to write a pull request for the company I interviewed with?

An Undercover Army

What is the orbit and expected lifetime of Crew Dragon trunk?

How to recover against Snake as a heavyweight character?

Has a sovereign Communist government ever run, and conceded loss, on a fair election?

Rationale to prefer local variables over instance variables?

Is this Paypal Github SDK reference really a dangerous site?

How to install "rounded" brake pads

Generating a list with duplicate entries

Propulsion Systems

Having the player face themselves after the mid-game

Is the differential, dp, exact or not?

Vector-transposing function

Precision notation for voltmeters

What does *dead* mean in *What do you mean, dead?*?

Can I negotiate a patent idea for a raise, under French law?

Giving a career talk in my old university, how prominently should I tell students my salary?

I am the person who abides by rules but breaks the rules . Who am I

A running toilet that stops itself

How can I have x-axis ticks that show ticks scaled in powers of ten?



How to prevent dbus from setting environment variables


Where to declare environment variables?Ubuntu adding path/Environment variablessetting system variables through terminalChanging environment variablesProblem with environment variableshow to export folder specific environment variables?How do i efficiently use environment variables?Listing environment variables of a particular SHELLCan't properly reset environment variablesHow to find the source definition of an environment variable?













0















TL;DR: dbus is setting an environment variable, which makes less search capability unusable



Long story short: I've Ubuntu 18.04 in Virtual Box, and when I try to search any text open with less via / key and press Enter, it inserts ESC text instead of actually searching the text.



enter image description here



I've figured out that there were couple less-specific environment variables exported in the environment:



$ env | grep LESS
LESSCLOSE=/usr/bin/lesspipe %s %s
LESSOPEN=| /usr/bin/lesspipe %s


With environment ignored via env -i less /etc/passwd for example, the command accepts Enter` key just fine, and searching works although without highlighting the match.



I've tried investigating where this environment variable comes from and apparently it comes from dbus



$ grep 'LESS' .xsession-errors 
dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s
dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s


Desktop environment in use: Cinnamon 3.6.7 (and there is also LXQT 0.12.0 that was in use prior to installing Cinnamon, although the issue appeared only recently presumably after Cinnamon installation)




According to this answer the issue may be related to the fact that keypad Enter key sends a different keycode, and using --no-keypad option with less helps. Problem is that I don't use keypad - the laptop on which I am working has only one Enter key.










share|improve this question




























    0















    TL;DR: dbus is setting an environment variable, which makes less search capability unusable



    Long story short: I've Ubuntu 18.04 in Virtual Box, and when I try to search any text open with less via / key and press Enter, it inserts ESC text instead of actually searching the text.



    enter image description here



    I've figured out that there were couple less-specific environment variables exported in the environment:



    $ env | grep LESS
    LESSCLOSE=/usr/bin/lesspipe %s %s
    LESSOPEN=| /usr/bin/lesspipe %s


    With environment ignored via env -i less /etc/passwd for example, the command accepts Enter` key just fine, and searching works although without highlighting the match.



    I've tried investigating where this environment variable comes from and apparently it comes from dbus



    $ grep 'LESS' .xsession-errors 
    dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
    dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s
    dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
    dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s


    Desktop environment in use: Cinnamon 3.6.7 (and there is also LXQT 0.12.0 that was in use prior to installing Cinnamon, although the issue appeared only recently presumably after Cinnamon installation)




    According to this answer the issue may be related to the fact that keypad Enter key sends a different keycode, and using --no-keypad option with less helps. Problem is that I don't use keypad - the laptop on which I am working has only one Enter key.










    share|improve this question


























      0












      0








      0








      TL;DR: dbus is setting an environment variable, which makes less search capability unusable



      Long story short: I've Ubuntu 18.04 in Virtual Box, and when I try to search any text open with less via / key and press Enter, it inserts ESC text instead of actually searching the text.



      enter image description here



      I've figured out that there were couple less-specific environment variables exported in the environment:



      $ env | grep LESS
      LESSCLOSE=/usr/bin/lesspipe %s %s
      LESSOPEN=| /usr/bin/lesspipe %s


      With environment ignored via env -i less /etc/passwd for example, the command accepts Enter` key just fine, and searching works although without highlighting the match.



      I've tried investigating where this environment variable comes from and apparently it comes from dbus



      $ grep 'LESS' .xsession-errors 
      dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
      dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s
      dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
      dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s


      Desktop environment in use: Cinnamon 3.6.7 (and there is also LXQT 0.12.0 that was in use prior to installing Cinnamon, although the issue appeared only recently presumably after Cinnamon installation)




      According to this answer the issue may be related to the fact that keypad Enter key sends a different keycode, and using --no-keypad option with less helps. Problem is that I don't use keypad - the laptop on which I am working has only one Enter key.










      share|improve this question
















      TL;DR: dbus is setting an environment variable, which makes less search capability unusable



      Long story short: I've Ubuntu 18.04 in Virtual Box, and when I try to search any text open with less via / key and press Enter, it inserts ESC text instead of actually searching the text.



      enter image description here



      I've figured out that there were couple less-specific environment variables exported in the environment:



      $ env | grep LESS
      LESSCLOSE=/usr/bin/lesspipe %s %s
      LESSOPEN=| /usr/bin/lesspipe %s


      With environment ignored via env -i less /etc/passwd for example, the command accepts Enter` key just fine, and searching works although without highlighting the match.



      I've tried investigating where this environment variable comes from and apparently it comes from dbus



      $ grep 'LESS' .xsession-errors 
      dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
      dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s
      dbus-update-activation-environment: setting LESSOPEN=| /usr/bin/lesspipe %s
      dbus-update-activation-environment: setting LESSCLOSE=/usr/bin/lesspipe %s %s


      Desktop environment in use: Cinnamon 3.6.7 (and there is also LXQT 0.12.0 that was in use prior to installing Cinnamon, although the issue appeared only recently presumably after Cinnamon installation)




      According to this answer the issue may be related to the fact that keypad Enter key sends a different keycode, and using --no-keypad option with less helps. Problem is that I don't use keypad - the laptop on which I am working has only one Enter key.







      command-line virtualbox less






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 10 hours ago







      Sergiy Kolodyazhnyy

















      asked yesterday









      Sergiy KolodyazhnyySergiy Kolodyazhnyy

      73.8k9154323




      73.8k9154323




















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "89"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1123763%2fhow-to-prevent-dbus-from-setting-environment-variables%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Ask Ubuntu!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1123763%2fhow-to-prevent-dbus-from-setting-environment-variables%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

          Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

          Antonio De Lisio Carrera Referencias Menú de navegación«Caracas: evolución relacional multipleja»«Cuando los gobiernos subestiman a las localidades: L a Iniciativa para la Integración de la Infraestructura Regional Suramericana (IIRSA) en la frontera Colombo-Venezolana»«Maestría en Planificación Integral del Ambiente»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»«Conózcanos»«Caracas: evolución relacional multipleja»«La Metrópoli Caraqueña: Expansión Simplificadora o Articulación Diversificante»