Search found 590 matches

by BruceSteers
Saturday 17th July 2021 2:34pm
Forum: General
Topic: $EDITOR?
Replies: 2
Views: 94

Re: $EDITOR?

it's for git (version control), 'git commit' uses a terminal editor like nano
if yr using the version control then set the env in your system startup

$ export EDITOR="nano"

(i thought the message was a bug that got fixed so might not be on all gambas versions)
by BruceSteers
Friday 16th July 2021 7:07pm
Forum: General
Topic: Gambas Project Folders & Files
Replies: 4
Views: 146

Re: Gambas Project Folders & Files

I dont know if it makes a difference or not but you said .Public , I said .public (lower case p)
Not trying to be pedantic but it might make a difference.

That looks like a cool way to store/get path names 🙂
by BruceSteers
Friday 16th July 2021 12:37am
Forum: General
Topic: Gambas Project Folders & Files
Replies: 4
Views: 146

Re: Gambas Project Folders & Files

I want to create a set of folders to store various types of data in my Gambas project area. Is there a 'best practice' location to create these folders or is it just the project root? This question is more around creating installation packages and where application data should go. Anybody able to f...
by BruceSteers
Thursday 15th July 2021 5:05pm
Forum: Component
Topic: Create Desktop Shortcut Using SUDO
Replies: 8
Views: 244

Re: Create Desktop Shortcut Using SUDO

Hmm i have found pkexec to not work.
My app groot does though :) 8-)
advantage with groot is you can enter root password for sudo or leave blank to run as normal.
by BruceSteers
Thursday 15th July 2021 4:59pm
Forum: Component
Topic: Create Desktop Shortcut Using SUDO
Replies: 8
Views: 244

Re: Create Desktop Shortcut Using SUDO

or you could drag the gambas menu launcher to your desktop and edit the properties (just add pkexec or groot to the gambas3 command)
by BruceSteers
Thursday 15th July 2021 4:41pm
Forum: Component
Topic: Create Desktop Shortcut Using SUDO
Replies: 8
Views: 244

Re: Create Desktop Shortcut Using SUDO

aah yes lol I have better read your post now.. Just right click on Desktop and select "Create Launcher" give it a name set command to pkexec gambas3 or groot gambas3 https://gitlab.com/bsteers4/groot groot has an install file in the project folder, just make the exe (it's gambas) and install. the pr...
by BruceSteers
Thursday 15th July 2021 11:16am
Forum: Component
Topic: Create Desktop Shortcut Using SUDO
Replies: 8
Views: 244

Re: Create Desktop Shortcut Using SUDO

check out this module of mine... There's not docs so study the code. it lets you make either a desktop icon or a menu item. Here is how i use it... Just drop the MakeIcon.module into your .src folder the main command of the module is MakeMe() MakeMe(Optional name As String = "", Optional icn As Imag...
by BruceSteers
Thursday 15th July 2021 11:00am
Forum: Component
Topic: Create Desktop Shortcut Using SUDO
Replies: 8
Views: 244

Re: Create Desktop Shortcut Using SUDO

Just use the path in the Home dir This is how i might do it... Dim sUser As String Shell "w -h| awk '{print $1}'" To sUser sDesktopPath = "/home" &/ sUser &/ "Desktop" ' Write the .desktop file , lets say it's called Launcher.desktop File.Save(sDesktopPath &/ "Launcher.desktop", sFileData) Chown sDe...
by BruceSteers
Thursday 15th July 2021 10:52am
Forum: General
Topic: Launch and External Application
Replies: 4
Views: 140

Re: Launch and External Application

Hi All, I am having trouble finding the method to launch an external python application. In the attempt below, I get a "File or directory does not exist " error. The App.py resides on my Desktop and is definitely in the path I provided. I wish to launch it in the linux teminal shell. BUTTON: Public...
by BruceSteers
Thursday 15th July 2021 12:13am
Forum: General
Topic: TextArea - Selecting text with code
Replies: 6
Views: 226

Re: TextArea - Selecting text with code

Ps. you will have trouble using right mouse click as textarea want to pop up it's copy/paste menu on right click. A better option it to use an Alt or Control key to do it.. Public Sub TextArea1_MouseUp() If Mouse.Alt Then Dim iStartPos As Integer = TextArea1.ToPos(TextArea1.Line, 0) Dim iLF As Integ...