konsole window in a specific folder.

Post

Posted
Rating:
#1 (In Topic #1338)
Regular
theyikes is in the usergroup ‘Regular’
 Hi i'm sure this is relatively straight forward to those of you who know what you're doing but it's got me really puzzled!
What I want to do is click on a button and have it open a konsole window within a predefined folder:

So when i click open it'll open a konsole window in the /home/USERNAME/Desktop or somewhere.

any suggestions?
Online now: No Back to the top

Post

Posted
Rating:
#2
Regular
theyikes is in the usergroup ‘Regular’
ok i FINALLY got it!!!

  Dim folderPath As String
  folderPath = "/home/yikes/Desktop"
  
  
  Exec ["konsole", "–workdir", folderPath] Wait
  

thanks guys!
Online now: No Back to the top

Post

Posted
Rating:
#3
Regular
theyikes is in the usergroup ‘Regular’
to be more precise this worked:
  Dim folderPath As String
  folderPath = DirChooser1.SelectedPath
  
  
  Exec ["konsole", "–workdir", folderPath] Wait
Online now: No Back to the top

Post

Posted
Rating:
#4
Guru
BruceSteers is in the usergroup ‘Guru’
Yep i typed this before you posted

Code (gambas)

  1.  
  2. Dim sPath As String = "~/.config"
  3. Exec ["konsole", "--workdir", sPath]
  4.  
  5.  

Ps.
If you use Wait then the program cannot do anything until you close the console


PPS. you can use gb in square brackets to post gambas code (or hit the gb button above the text input)
Online now: No Back to the top

Post

Posted
Rating:
#5
Regular
theyikes is in the usergroup ‘Regular’
 Hey BruceSteers!!! Thanks for getting back to me. I have another Gambas related question, Should i post it here or should i open a new topic?
Again it's basic but I can't seem to do it!
Online now: No Back to the top

Post

Posted
Rating:
#6
Regular
theyikes is in the usergroup ‘Regular’
never mind i figured it out. It wa sonly a question about setting the filter on filechooser.:

in case anyone needs a tip this worked for me
        FileChooser1.Filter = ["*.png;*.jpg;*.jpeg;*.bmp", "Picture files", "*.svg;*.wmf", "Drawing files"]
Online now: No Back to the top

Post

Posted
Rating:
#7
Guru
BruceSteers is in the usergroup ‘Guru’

theyikes said

Hey BruceSteers!!! Thanks for getting back to me. I have another Gambas related question, Should i post it here or should i open a new topic?
Again it's basic but I can't seem to do it!

It's probably nicer for the forum if you stay on topic and start a new thread for non related questions.

But I would say you may wanna wait just a bit before asking, have a go at figuring out the problem before you post because you seem to ask questions that you soon answer yourself afterwards.

in fact the last answer you gave you didn't even post the question first, you just gave your own answer to an unasked query of yours :D lol

But it's all good fella, we're all friends here
Online now: No Back to the top

Post

Posted
Rating:
#8
Regular
vuott is in the usergroup ‘Regular’

theyikes said

So when i click open it'll open a konsole window in the /home/USERNAME/Desktop or somewhere.
Maybe this, by activating gb.desktop Component:

Code (gambas)

  1. Desktop.OpenTerminal(Desktop.GetDirectory("DESKTOP"))

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#9
Regular
theyikes is in the usergroup ‘Regular’
Hey vuott! that worked Thanks a hundred times! This forum is amazing. Hi Bruce i get what you said about thinking things through before i post but I am by my very nature an impulsive individual :) I'll try to hold back for a while in future and maybe see if i can work it out on my own.
Online now: No Back to the top
1 guest and 0 members have just viewed this.