<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">On Friday, November 17, 2023 10:09:40 AM CET David Bannon via FOSS-GPS wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Hmm, Fred, I cannot find my gps mouse so cannot run gpsd. But I just</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> installed gpsd and seems I was wrong, no group gpsd. But there is a gpsd</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> user. Now, thats the user who should be launching gpsd, not root. If you</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> have a gpsd plugged in, see if you can see that process -</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> <span style="color:#000000;"><span style="font-family:monospace;"><span style="background-color:#ffffff;">ps aux | grep gpsd</span></span></span></p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">fred@sapiens:~/Downloads> ps aux | grep gpsd   <p> <strong><span style="color:#ff5454;">gpsd</span></strong><p>  </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> and look to see who the user is.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">That's me.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Might be worth checking /run/gpsd, that is gpsd's 'home' directory and</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> where it will drop state files. If there are files in there, who owns them ?</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;"><span style="color:#000000;">fred@sapiens:~/Downloads> ls -l /run/gpsd </span><p>  </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Seems that gpsd talks over d-bus or some shared memory model, D-Bus is</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> pretty reliable but the shared memory model may be very user sensitive.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> Honestly, IDK.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">Thanks for your help.</p>
<br /><p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > On 17/11/23 06:33, Fred Mobach via FOSS-GPS wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > On Thursday, November 16, 2023 11:41:23 AM CET David Bannon via FOSS-GPS</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> Fred, my opinion may not be very valuable as I have not used Foxtrot for</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> some time. But, two suggestions :</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> * Firstly, by running a program like this as root, you may have caused a</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> whole lot of files in fred's space to be owned by root. When you then</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> run as fred, you find that fred cannot write to those files. Its just</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> about never a good idea to run a user space GUI app as root.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Running as root was just to test if the problem was also there, but it</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > wasn't. Please note that the problem arose when foxtrotgps had always</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > been run under the user fred. Additionally I've checked alle</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > subdirectories under the user fred but all files are owned by the user</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > fred.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> * Second, from memory, gpsd runs as the user gpsd. For fred to be able</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> to read gpsd's data, fred probably needs to be in the gpsd group. Can</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> you check that please, maybe look to see if there is a gpsd user and</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> group, if so, is fred also a member of the gpsd group ? They these</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> commands as user fred -</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> $> cat /etc/group | gpsd <enter></p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > The gpsd doesn't appear in the file /etc/groups.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Nevertheless thanks for your help, I appreciate that.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > Fred Mobach</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> > </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >> On 15/11/23 05:01, Fred Mobach via FOSS-GPS wrote:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> Hello,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> Since years I'm using foxtrotgps to show openstreetmap.org maps with my</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> added POI's on screen to have an overview of those POI's in a centain</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> environment.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> All of a sudden moment the maps were not shown when running in a common</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> user environment while the same programm running under root shown the</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> maps in the normal way. What this problem initiated is unknown to me.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> To shown the problem the attachments shows the diffenrences:</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> - left the screen running under root,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> - middle the configuration panel,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> - right the screen running under user fred.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> Note the error message No GPSD found: that missing device get the maps</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> again unde user fred.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> So my question is how to get those maps under user fred displayed again.</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> Regards,</p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> </p>
<p style="margin-top:0;margin-bottom:0;margin-left:0;margin-right:0;">> >>> Fred</p>
<br /><br /></body>
</html>