AyatanaIndicators / libayatana-appindicator

Ayatana Application Indicators Shared Library
GNU Lesser General Public License v3.0
57 stars 14 forks source link

files in tmp not being shared nicely. #57

Closed davidbannon closed 2 years ago

davidbannon commented 2 years ago

Hi, great to see this project underway, I make an app that uses, indeed must have, System Tray and its even working on Gnome these days !

But a user has just alerted me to a real problem. When a appindicator is initiated, the library makes a copy of the icon in /tmp/appindicator. And when it exits (gracefully) it removes that icon but not the directory. And that directory is marked other read only.

So, if another user logs on, starts the app, or, I suspect any app that uses an appindicator, that user cannot write to /tmp/appindicator and cannot, therefore display a Icon there. Linux, being a multiuser should be able to support concurrent users too !

Now, I use Lazarus and Free Pascal that has a 'Unit' in our speak between my code and the the AppIndicator library, is there a library API that unit should be using to ensure entries in /tmp are unique to that user ?

EDIT: No, on further research I found the dev docs under (gtk-doc ?) and it looks like its an issue at our end, Lazarus creates that dir, I will address.

Davo

davidbannon commented 2 years ago

Merge request to Lazarus created. https://gitlab.com/freepascal.org/lazarus/lazarus/-/merge_requests/92 Closing the ticket I should not have opened. Thanks for the great library !