[Gambas-user] Access global variable from other .class
Jussi Lahtinen
jussi.lahtinen at ...626...
Sat Jun 16 00:17:35 CEST 2012
OK, got it.
It's now "fixed" (actually xfce function was missing), tested and attached.
Benoit, is this official part of xdg-utils..? Because I have that package
installed, but not that script.
Jussi
On 16 June 2012 00:23, Jussi Lahtinen <jussi.lahtinen at ...626...> wrote:
> OK, I'm stupid.
> Desktop.ScreenSaver.Activate() doesn't do anything because I have disabled
> screensaver,
> so the blank screen I see after 6 min idle, is actually monitor turning
> off.
>
> I will investigate what is wrong with xdg-su...
>
> Jussi
>
>
>
>
>
> On 15 June 2012 23:49, tobi <tobiasboege01 at ...1601...> wrote:
>
>> On Fri, 15 Jun 2012, Jussi Lahtinen wrote:
>> > > If I remember correctly, you can even save more work by using
>> gb.desktop,
>> > > Desktop.RunAsRoot() which
>> > > builds on top of the portland xdg scripts.
>> > >
>> >
>> > Before writing anything I should always check what gb.desktop
>> contains...
>> >
>> > But there seems to be bugs.
>> >
>> > I tried 'Desktop.RunAsRoot("whoami")'.
>> > All I got is: " xdg-su: no graphical method available for invoking
>> 'whoami'
>> > as 'root'"
>> >
>> > I have gksudo installed ( in /usr/bin/gksudo ) and working.
>> > So perhaps Gambas ships broken version of this script..?
>> >
>> > Also "xdg-screensaver activate" doesn't work
>> (Desktop.ScreenSaver.Activate).
>> > Either the version of that script already installed to my system (xdg-su
>> > wasn't installed at all).
>> >
>> > Xubuntu 12.04 64 bit.
>> > Screensaver in use is XScreenSaver 5.15, and GKsu is version 2.0.2.
>> >
>> > Jussi
>> >
>> ------------------------------------------------------------------------------
>> > Live Security Virtual Conference
>> > Exclusive live event will cover all the ways today's security and
>> > threat landscape has changed and how IT managers can respond.
>> Discussions
>> > will include endpoint security, mobile security and the latest in
>> malware
>> > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> > _______________________________________________
>> > Gambas-user mailing list
>> > Gambas-user at lists.sourceforge.net
>> > https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>> Yes, I was surprised, too, when I saw lately how gb.desktop grew since I
>> last had a look at it.
>> There seem to be a lot of people who want to run programs as root, it's
>> always the same problem to
>> solve...
>>
>> I don't know about the scripts, I personally didn't need them so far but
>> they are distributed in the
>> gb.desktop/src/gb.desktop/xdg-utils/ directory in the source tree. If
>> there is a bug, you might be
>> able to spot it yourself - at least xdg-su seems not really complicated,
>> even to me who is not used
>> to shell scripting to that extend.
>>
>> Regards,
>> Tobi
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> Gambas-user mailing list
>> Gambas-user at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/gambas-user
>>
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xdg-su
Type: application/octet-stream
Size: 10145 bytes
Desc: not available
URL: <http://lists.gambas-basic.org/pipermail/user/attachments/20120616/647cf597/attachment.obj>
More information about the User
mailing list