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

          Are there any comparative studies done between Ashtavakra Gita and Buddhim?How is it wrong to believe that a self exists, or that it doesn't?Can you criticise or improve Ven. Bodhi's description of MahayanaWas the doctrine of 'Anatta', accepted as doctrine by modern Buddhism, actually taught by the Buddha?Relationship between Buddhism, Hinduism and Yoga?Comparison of Nirvana, Tao and Brahman/AtmaIs there a distinction between “ego identity” and “craving/hating”?Are there many differences between Taoism and Buddhism?Loss of “faith” in buddhismSimilarity between creation in Abrahamic religions and beginning of life in Earth mentioned Agganna Sutta?Are there studies about the difference between meditating in the morning versus in the evening?Can one follow Hinduism and Buddhism at the same time?Are there any prohibitions on participating in other religion's practices?Psychology of 'flow'

          What to do with chalk when deepwater soloing? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Photo Competition: April - At Home in The Great OutdoorsIs it ok for my climbing shoes/chalk bag to get wet?What hand and finger exercises help with climbing?Chalk: pure, plus drying agent, liquid?What can I do with a retired rope and harness?What to do with the lap coiled rope if the belayer wishes to lead consecutive pitches?How do to a safety knot when abseiling with 2 ropes?What are the advantages of being short when climbing?When should you start to train with Campus Boards, Hang Boards and Peg Boards?Climbing: fear/panic on boulder wallWith what specific techniques are various bouldering grades associated?What are the most important numerical features to look for when comparing climbing ropes?

          How to start Thunderbird minimized on start-up?How to run Thunderbird on startup, minimised?How to make Thunderbird Mail runs at startup?How do I start applications automatically on login?How can I delay a specific program on startup?How do I hide Thunderbird from the launcher while running?How to keep Thunderbird and Pidgin running on background?How to open Thunderbird minimised at startup in Ubuntu 16.04How to start Thunderbird minimized to Unity system tray on start-up?Minimize Thunderbird to Traythunderbird script to disable option: “delete message on server”Why is Thunderbird pegging a core at 100%?Thunderbird resets profile after second start upClearing out Thunderbird on UbuntuThunderbird and a shared “home” partitionBidirectionally synchronize Thunderbird profiles (POP3 mail accounts) between two computersWhy doesn't Ubuntu/Thunderbird save my PGP key?How to start Thunderbird minimized to Unity system tray on start-up?Recovering thunderbird files from quick formatted drive?