leafpad and gksu

  • Follow


Hi All,

If I run Leafpad from the command line as root, it
works perfectly.

If I run Leafpad from gksu, I get a gray box, no
pull down menus, nothing.

     gksu -u root "/usr/bin/leafpad"

Any idea what I am doing wrong?

Many thanks,
-T
0
Reply todd1749 (255) 6/6/2011 4:35:28 AM

On 2011-06-05 22:35:28 -0600, Todd <Todd@invalid.com> said:

> Hi All,
> 
> If I run Leafpad from the command line as root, it
> works perfectly.
> 
> If I run Leafpad from gksu, I get a gray box, no
> pull down menus, nothing.
> 
>      gksu -u root "/usr/bin/leafpad"
> 
> Any idea what I am doing wrong?
> 
> Many thanks,
> -T

With nothing else to go on I would say your path as root is different 
than your path as user

0
Reply boscopelone (33) 6/7/2011 3:36:16 AM


On 06/06/2011 08:36 PM, bosco wrote:
> On 2011-06-05 22:35:28 -0600, Todd <Todd@invalid.com> said:
>
>> Hi All,
>>
>> If I run Leafpad from the command line as root, it
>> works perfectly.
>>
>> If I run Leafpad from gksu, I get a gray box, no
>> pull down menus, nothing.
>>
>> gksu -u root "/usr/bin/leafpad"
>>
>> Any idea what I am doing wrong?
>>
>> Many thanks,
>> -T
>
> With nothing else to go on I would say your path as root is different
> than your path as user
>

Huh. With some playing around,

    gksu -u root "/usr/bin/leafpad X"

worked.  Only problem is that it names the top of the
window "X"

This seemed to do the trick -- giving me "untitled"
at the top of the window:

    gksu -u root "echo "" | /usr/bin/leafpad"

I wonder what leafpad was waiting for?

-T
0
Reply todd1749 (255) 6/7/2011 6:42:38 PM

On 06/05/2011 09:35 PM, Todd wrote:
> If I run Leafpad from the command line as root, it
> works perfectly.
>
> If I run Leafpad from gksu, I get a gray box, no
> pull down menus, nothing.
>
>      gksu -u root "/usr/bin/leafpad"

https://bugzilla.xfce.org/show_bug.cgi?id=7707
0
Reply todd1749 (255) 6/7/2011 8:35:47 PM

3 Replies
75 Views

(page loaded in 0.172 seconds)


Reply: