Giter Club home page Giter Club logo

Comments (14)

jamesob avatar jamesob commented on July 29, 2024

Hey, @MrMitch, thanks for the report. Could you do me a favor and attach some additional information like which shell you're running (with version), operating system, etc.? I'm unable to reproduce on OS X and Linux in zsh.

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

I'm on Ubuntu 15.10, my shell is Bash (GNU bash, version 4.3.42(1)-release (x86_64-pc-linux-gnu)) and ~/.desk/desks is a symlink to another folder. I've not set any $DESK_* related var in my .bashrc file, the only desk related lines in it are the following :

# Hook for desk activation
[ ! -z "$DESK_ENV" ] && source "$DESK_ENV"
source /home/mitch/bin/desk-src/shell_plugins/bash/desk

Hope this helps, feel free to ask anything more you might need.

from desk.

jamesob avatar jamesob commented on July 29, 2024

@MrMitch I'm curious: if you remove "$@" from the end of this line: https://github.com/jamesob/desk/blob/master/desk#L105, does that resolve the issue?

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

@jamesob no it doesn't, I still get the same message.

from desk.

jamesob avatar jamesob commented on July 29, 2024

Odd, okay. Two ideas:

  • can you add echo $SHELL_EXEC to the line above to see what desk is actually trying to execute, and
  • can you use git bisect to find the commit that introduced this issue?

In the meantime, I'll try to recreate.

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

I get :

mitch@mitchbox [(09fdbe4...)|BISECTING] git bisect good
803bf37847633e2f685a46a27b11facf22efebec is the first bad commit

803bf37

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

803bf37 has two parents, 15919e9 which is fine and 09fdbe4 which is also fine

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

adding echo $SHELL_EXEC prints a new empty line. It seems get_running_shell has trouble detecting the shell I use. FYI, echo $SHELL prints /bin/bash

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

strange thing : I'm using Guake (0.7.2) as terminal. I went and tried desk in Gnome Terminal and it works fine!

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

complementary issue Guake/guake#677 filed

from desk.

jamesob avatar jamesob commented on July 29, 2024

Interesting... thanks for the opening the Guake issue. Happy to modify 803bf37#diff-b506e098cf253ce028b8ba0a5fc7d473R167 to get this to work for Guake.

from desk.

MrMitch avatar MrMitch commented on July 29, 2024

looking at the get_running_shell function, it seems that $CMDLINE_FILE points to a file which content is -, so because of the -e 's/^-//' part on line 257, $CMDLINE_SHELL is empty, which is why get_running_shell returns an empty value, causing the command not found message.

from desk.

ericksonjoseph avatar ericksonjoseph commented on July 29, 2024

Hey I found an issue related to this one. get_running_shell was returning 3182. Im using bash on OSX
"/usr/local/bin/desk: line 133: 3182: command not found"

Quick Fix:

local SHELL_EXEC="$(get_running_shell)"

local SHELL_EXEC="/bin/bash"

from desk.

drobati avatar drobati commented on July 29, 2024

I came across this issue with hyper.app as a terminal. It worked fine in terminal.app for me.

from desk.

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.