Search found 657 matches

by BruceSteers
Monday 11th October 2021 8:12am
Forum: General
Topic: Desktop.windows give only active window [solved]
Replies: 5
Views: 189

Re: Desktop.windows give only active window [solved]

I know a lot of gambas features requires x11 , if your other system uses wayland then various things will not work as expected.

That's about all i can think of.

I'm sure you'll figure it out.
:)
by BruceSteers
Friday 08th October 2021 12:31am
Forum: General
Topic: Desktop.windows give only active window [solved]
Replies: 5
Views: 189

Re: Desktop.windows give only active window

that code works completely as expected for me on mint [System] Gambas=3.16.90 51cf626fa (bruces-patched) OperatingSystem=Linux Kernel=5.4.0-84-generic Architecture=x86_64 Distribution=Linux Mint 20.2 Uma Desktop=Cinnamon Result Window.Name = "Computer" , X = 256 , Y = 194 Window.Name = "MediaPlay" ,...
by BruceSteers
Thursday 30th September 2021 12:16pm
Forum: General
Topic: Help needed please to migrate from VB2008 HttpWebRequest functions to Gambas
Replies: 5
Views: 375

Re: Help needed please to migrate from VB2008 HttpWebRequest functions to Gambas

I'd focus on getting the following 2 lines converted correctly. Dim credentials As String = Convert.ToBase64String(Encoding.ASCII.GetBytes(PS_USER & ":" & PS_PASS)) .Headers(HttpRequestHeader.Authorization) = String.Format("Basic {0}", credentials) The rest of the code looks almost like Gambas and s...
by BruceSteers
Sunday 19th September 2021 6:26pm
Forum: Component
Topic: NoRoot.class (get User and default paths info when root)
Replies: 2
Views: 306

Re: NoRoot.class (get User and default paths info when root)

PS i changed the class name to NotRoot.class
by BruceSteers
Sunday 19th September 2021 9:12am
Forum: Component
Topic: NoRoot.class (get User and default paths info when root)
Replies: 2
Views: 306

Re: NoRoot.class (get User and default paths info when root)

Slight update folks...

modified because using pkexec did not work

now it works with sudo, su and pkexec.

Added a ReadMe

No docs needed i think
by BruceSteers
Wednesday 15th September 2021 10:15am
Forum: Component
Topic: Desktop.RunAsRoot, Desktop.RunAs
Replies: 0
Views: 184

Desktop.RunAsRoot, Desktop.RunAs

For anyone's information an update to Desktop.RunAsRoot() has been made thanks to yours truly. Desktop.RunAsRoot() now uses 'pkexec' by default as its sudoer. Desktop.RunAs() is a new method that allows to specify the username used for running a program. [GB.DESKTOP] * NEW: Desktop.RunAsRoot() now t...
by BruceSteers
Wednesday 15th September 2021 3:32am
Forum: General
Topic: Create Install package for debian
Replies: 17
Views: 959

Re: Create Install package for debian

ps. you can use apt-cache to find what gambas3 packages are available from your configured repositories.

apt-cache search "gambas3*"
by BruceSteers
Wednesday 15th September 2021 3:21am
Forum: General
Topic: Create Install package for debian
Replies: 17
Views: 959

Re: Create Install package for debian

looks like you only have the security debian repository set up , you need main and contrib too. This happens when you choose not to select a network mirror at install From debian website... Using a repository is fairly simple: For the official Debian repository open /etc/apt/sources.list, insert the...
by BruceSteers
Tuesday 14th September 2021 11:36am
Forum: General
Topic: How to read incoming tcp data packet - string not empty but no data ?
Replies: 6
Views: 413

Re: Re:Solved- How to read incoming tcp data packet - string not empty but no data ?

Dear Mr Brucesteers, thanks for the swift replys. The code provided by Mr SteveDee on his Captain Bodgit website is correct. Tried to change the Socket_read sub to ServerSocket1_read but did not work. The Socket_read is used and gives me the messagbox information as test. Thanks for the 'Quote' tip...
by BruceSteers
Monday 13th September 2021 4:23pm
Forum: General
Topic: How to read incoming tcp data packet - string not empty but no data ?
Replies: 6
Views: 413

Re: How to read incoming tcp data packet - string not empty but no data ?

Possibly using Quote could help see what characters need trimming Message("Lenght: " & String.Len(strmsg) & gb.LF & " strmsg: " & Quote(strmsg)) Also i'd only use gb.Lf not gb.CrLf in a message A message box will turn a gb.LF \n into <br> but the CR may have unwanted results. Str() is for converting...