title: can't launch rstudio from a conda environment
body: <p>I was trying to launch rstudio from a conda environment that has R 4.1.0 and it gives me that error</p>
  <pre><code>This application failed to start because it could not find or load the Qt platform plugin &quot;xcb&quot;
  in &quot;&quot;.
  
  Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
  
  Reinstalling the application may fix this problem.
  Aborted (core dumped)
  
  </code></pre>
  <p>How can I solve this issue without being the admin on my computer?</p>
  <p>One thing that I changed after creating the environment is</p>
  <pre><code>conda env config vars set LD_LIBRARY_PATH=&quot;/wdata/msmuhammad/workbench/miniconda3/envs/test2c2/lib&quot;
  
  conda env config vars set RSTUDIO_WHICH_R=&quot;/wdata/msmuhammad/workbench/miniconda3/envs/test2c2/bin/R&quot;
  
  </code></pre>
  <p>I did this because I had an issue in loading Seurat before described in details in this question <a href="https://stackoverflow.com/questions/69288536/libstdc-so-6-version-glibcxx-3-4-26-not-found-on-linux">libstdc++.so.6: version `GLIBCXX_3.4.26&#39; not found on Linux</a></p>
  <p>when I tried exporting QT_DEBUG_PLUGINS=1 and launching rstudio again, it gave this</p>
  <pre><code>QFactoryLoader::QFactoryLoader() checking directory path &quot;/usr/lib/rstudio/plugins/platforms&quot; ...
  QFactoryLoader::QFactoryLoader() looking at &quot;/usr/lib/rstudio/plugins/platforms/libqeglfs.so&quot;
  Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqeglfs.so, metadata=
  {
      &quot;IID&quot;: &quot;org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3&quot;,
      &quot;MetaData&quot;: {
          &quot;Keys&quot;: [
              &quot;eglfs&quot;
          ]
      },
      &quot;className&quot;: &quot;QEglFSIntegrationPlugin&quot;,
      &quot;debug&quot;: false,
      &quot;version&quot;: 330241
  }
  
  
  Got keys from plugin meta data (&quot;eglfs&quot;)
  QFactoryLoader::QFactoryLoader() looking at &quot;/usr/lib/rstudio/plugins/platforms/libqlinuxfb.so&quot;
  Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqlinuxfb.so, metadata=
  {
      &quot;IID&quot;: &quot;org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3&quot;,
      &quot;MetaData&quot;: {
          &quot;Keys&quot;: [
              &quot;linuxfb&quot;
          ]
      },
      &quot;className&quot;: &quot;QLinuxFbIntegrationPlugin&quot;,
      &quot;debug&quot;: false,
      &quot;version&quot;: 330241
  }
  
  
  Got keys from plugin meta data (&quot;linuxfb&quot;)
  QFactoryLoader::QFactoryLoader() looking at &quot;/usr/lib/rstudio/plugins/platforms/libqminimal.so&quot;
  Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqminimal.so, metadata=
  {
      &quot;IID&quot;: &quot;org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3&quot;,
      &quot;MetaData&quot;: {
          &quot;Keys&quot;: [
              &quot;minimal&quot;
          ]
      },
      &quot;className&quot;: &quot;QMinimalIntegrationPlugin&quot;,
      &quot;debug&quot;: false,
      &quot;version&quot;: 330241
  }
  
  
  Got keys from plugin meta data (&quot;minimal&quot;)
  QFactoryLoader::QFactoryLoader() looking at &quot;/usr/lib/rstudio/plugins/platforms/libqminimalegl.so&quot;
  Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqminimalegl.so, metadata=
  {
      &quot;IID&quot;: &quot;org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3&quot;,
      &quot;MetaData&quot;: {
          &quot;Keys&quot;: [
              &quot;minimalegl&quot;
          ]
      },
      &quot;className&quot;: &quot;QMinimalEglIntegrationPlugin&quot;,
      &quot;debug&quot;: false,
      &quot;version&quot;: 330241
  }
  
  
  Got keys from plugin meta data (&quot;minimalegl&quot;)
  QFactoryLoader::QFactoryLoader() looking at &quot;/usr/lib/rstudio/plugins/platforms/libqoffscreen.so&quot;
  Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqoffscreen.so, metadata=
  {
      &quot;IID&quot;: &quot;org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3&quot;,
      &quot;MetaData&quot;: {
          &quot;Keys&quot;: [
              &quot;offscreen&quot;
          ]
      },
      &quot;className&quot;: &quot;QOffscreenIntegrationPlugin&quot;,
      &quot;debug&quot;: false,
      &quot;version&quot;: 330241
  }
  
  
  Got keys from plugin meta data (&quot;offscreen&quot;)
  QFactoryLoader::QFactoryLoader() looking at &quot;/usr/lib/rstudio/plugins/platforms/libqvnc.so&quot;
  Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqvnc.so, metadata=
  {
      &quot;IID&quot;: &quot;org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3&quot;,
      &quot;MetaData&quot;: {
          &quot;Keys&quot;: [
              &quot;vnc&quot;
          ]
      },
      &quot;className&quot;: &quot;QVncIntegrationPlugin&quot;,
      &quot;debug&quot;: false,
      &quot;version&quot;: 330241
  }
  
  
  Got keys from plugin meta data (&quot;vnc&quot;)
  QFactoryLoader::QFactoryLoader() looking at &quot;/usr/lib/rstudio/plugins/platforms/libqxcb.so&quot;
  Found metadata in lib /usr/lib/rstudio/plugins/platforms/libqxcb.so, metadata=
  {
      &quot;IID&quot;: &quot;org.qt-project.Qt.QPA.QPlatformIntegrationFactoryInterface.5.3&quot;,
      &quot;MetaData&quot;: {
          &quot;Keys&quot;: [
              &quot;xcb&quot;
          ]
      },
      &quot;className&quot;: &quot;QXcbIntegrationPlugin&quot;,
      &quot;debug&quot;: false,
      &quot;version&quot;: 330241
  }
  
  
  Got keys from plugin meta data (&quot;xcb&quot;)
  QFactoryLoader::QFactoryLoader() checking directory path &quot;/usr/lib/rstudio/bin/platforms&quot; ...
  Cannot load library /usr/lib/rstudio/plugins/platforms/libqxcb.so: (/usr/lib/rstudio/bin/../lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /wdata/msmuhammad/workbench/miniconda3/envs/test2/lib/libQt5XcbQpa.so.5))
  QLibraryPrivate::loadPlugin failed on &quot;/usr/lib/rstudio/plugins/platforms/libqxcb.so&quot; : &quot;Cannot load library /usr/lib/rstudio/plugins/platforms/libqxcb.so: (/usr/lib/rstudio/bin/../lib/libQt5Core.so.5: version `Qt_5.12' not found (required by /wdata/msmuhammad/workbench/miniconda3/envs/test2/lib/libQt5XcbQpa.so.5))&quot;
  This application failed to start because it could not find or load the Qt platform plugin &quot;xcb&quot;
  in &quot;&quot;.
  
  Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
  
  Reinstalling the application may fix this problem.
  Aborted (core dumped)
  </code></pre>
  <p>Any suggestions?</p>
  <p>the command <code>which R</code> gives <code>/wdata/msmuhammad/workbench/miniconda3/envs/test2/bin/R</code> and <code>which rstudio</code> gives <code>/usr/bin/rstudio</code></p>