Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 10 Dec 2018, 16:21
All times are UTC - 4
 Forum index » House Training » Bugs ( Submit bugs )
Artful Derivative with strange pidof X results
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [8 Posts]  
Author Message
ITSMERSH


Joined: 02 May 2018
Posts: 562

PostPosted: Tue 27 Nov 2018, 21:10    Post subject:  Artful Derivative with strange pidof X results
Subject description: pidof X = ""
 

Hi.

In my Studio2Go, which is a remastered version of Smithy's first version of Music2Go Artful which is a derivative of Artful Puppy, I discovered a strange thing. Shocked

Code:
"`pidof X`"


returns an empty string! Shocked

Even though, X is obviously running and active, since I'm posting from Studio2Go right now. This is really annoying, as my Puppies are executing scripts at boot up. Some of them are going to sleep until X is active. So, since pidof X returns an empty string they sleep forever. Rolling Eyes

Did I break anything on remaster?

Would anyone else please check this in the your Puppies and return the results here?

Thanks a lot!

_________________
RSH

Last edited by ITSMERSH on Tue 27 Nov 2018, 23:14; edited 1 time in total
Back to top
View user's profile Send private message 
nosystemdthanks

Joined: 03 May 2018
Posts: 540

PostPosted: Tue 27 Nov 2018, 21:32    Post subject: Re: Artful Derivative
Subject description: pidof X = ""
 

where can we download studio2go?
_________________
the end of the distro war, and the distro https://ptpb.pw/OnBT
Back to top
View user's profile Send private message Visit poster's website 
ITSMERSH


Joined: 02 May 2018
Posts: 562

PostPosted: Tue 27 Nov 2018, 23:13    Post subject: Re: Artful Derivative
Subject description: pidof X = ""
 

nosystemdthanks wrote:
where can we download studio2go?


The version I published in June 2018.
Though it's not comparable anymore to what I've already got over here.

_________________
RSH
Back to top
View user's profile Send private message 
nosystemdthanks

Joined: 03 May 2018
Posts: 540

PostPosted: Tue 27 Nov 2018, 23:32    Post subject:  

try pidof Xorg instead.

if that doesnt work, run leafpad and try pidof leafpad.

pidof X doesnt return anything in xenial either. pidof Xorg works.

_________________
the end of the distro war, and the distro https://ptpb.pw/OnBT
Back to top
View user's profile Send private message Visit poster's website 
ITSMERSH


Joined: 02 May 2018
Posts: 562

PostPosted: Wed 28 Nov 2018, 12:19    Post subject:  

nosystemdthanks wrote:
try pidof Xorg instead.

if that doesnt work, run leafpad and try pidof leafpad.

pidof X doesnt return anything in xenial either. pidof Xorg works.

I'd tested already successful various different programs like geany, leafpad, audacity etc.

The pidof Xorg works!

The pidof xwin works also!

Since pidof X doesn't return anything in Xenial, I suspect this is the default in Puppies beyond Tahr Puppy, as in my ArtStudio (Tahr based) pidof X works pretty well.

_________________
RSH
Back to top
View user's profile Send private message 
nosystemdthanks

Joined: 03 May 2018
Posts: 540

PostPosted: Wed 28 Nov 2018, 15:29    Post subject:  

ITSMERSH wrote:

Since pidof X doesn't return anything in Xenial, I suspect this is the default in Puppies beyond Tahr Puppy, as in my ArtStudio (Tahr based) pidof X works pretty well.


i was, a couple years ago, working on a project that would detect things like this in a variety of puppy distros. i should consider bringing it back.

at the risk of being obvious, ps aux | grep X would help with this. ps | grep X if youre using a version of ps that doesnt do aux. this isnt for the script, its for determining what string to use in the script.

_________________
the end of the distro war, and the distro https://ptpb.pw/OnBT
Back to top
View user's profile Send private message Visit poster's website 
Dry Falls

Joined: 16 Dec 2014
Posts: 573
Location: Upper Columbia

PostPosted: Wed 28 Nov 2018, 21:39    Post subject:  

Older pups have symlink /usr/bin/Xorg > /usr/bin/X

df
Back to top
View user's profile Send private message 
ITSMERSH


Joined: 02 May 2018
Posts: 562

PostPosted: Fri 30 Nov 2018, 16:58    Post subject:  

Dry Falls wrote:
Older pups have symlink /usr/bin/Xorg > /usr/bin/X

df


Thanks.

That was a useful hint! Cool

So, I can solve this without to edit all of my scripts and changing them for the newer Puppies.

Since I can execute any code I want to execute at boot up without to remaster, or to use a save file or save directory, I'm just checking for the existing of X. If not found simply creating a symbolic link /usr/bin/X pointing to /usr/bin/Xorg (or even xwin, if pidof Xorg wouldn't work either).

Should make all my sleeping scripts awaken. Wink Laughing

_________________
RSH
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [8 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Bugs ( Submit bugs )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0532s ][ Queries: 12 (0.0069s) ][ GZIP on ]