Giter Club home page Giter Club logo

Comments (5)

MarkHedleyJones avatar MarkHedleyJones commented on June 6, 2024

That's interesting.
What do you have in your preferences file for:

    "terminal": "gnome-terminal", 

When you run ranger as per the example .desktop file, it should execute the script ~/.dmenuEextended_shellCommand.sh which contains

#! /bin/bash
ranger

using the command gnome-terminal -e /home/user/.dmenuEextended_shellCommand.sh

What flavour of Linux are you running?

from dmenu-extended.

xalexalex avatar xalexalex commented on June 6, 2024

Regarding your questions:
In my dmenu-extended preferences I have "terminal": "urxvt". I just tried with konsole and the issue persists.
I am running Arch Linux.

When in dmenu-extended I pick ranger directly, everything works fine and I get my terminal of choice running ranger.
If instead I pick a directory (which should be opened by ranger), the strange behavior appears. It seems to be mediated by xdg-open. It's as if it does open it in a terminal, but in the wrong one (the login terminal). The expected behavior would be to open a new terminal (under the window manager) in which to run ranger.

from dmenu-extended.

MarkHedleyJones avatar MarkHedleyJones commented on June 6, 2024

I'm about 50% sure I understand what you're saying.
I can select a folder from the menu and it opens in Nautilus fine, but that's the behaviour I expect.
Have you configured your system such that xdg-open would open a folder in ranger?
If so, what happens when you type a command such as

xdg-open /home/user/Downloads

into a terminal and run that. Does it do as you expect?
I can't speak for why the terminal programs you're running are launched in the login terminal, that's bizzare.
Try setting this in your preferences file and see if this does what you want:

    "filebrowser": "gnome-terminal -e ranger", 

Then open a directory from within dmenu-extended.

from dmenu-extended.

xalexalex avatar xalexalex commented on June 6, 2024

I'm sorry, I had noticed my message was convoluted and I rewrote it twice, but to no avail apparently.

xdg-open /path/to/some/folder works fine in terminal

Setting "filebrowser": "urxvt -e ranger" does indeed work and make everything behave as expected.

There may be a bigger issue somewhere down below, I'm not sure it's in dmenu-extended. I'll do some digging and report back to you if I find something.

This issue is solved. Thank you!

from dmenu-extended.

MarkHedleyJones avatar MarkHedleyJones commented on June 6, 2024

from dmenu-extended.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.