![]() |
Re: [UPDATED] Quick Clip, a statusbar plugin to save text
Quote:
|
Re: [UPDATED] Quick Clip, a statusbar plugin to save text
Quote:
Thanks. |
Re: [UPDATED] Quick Clip, a statusbar plugin to save text
Quote:
But, anyway, sorry for the mini-rant above (it's not intended as one! :)). I hardcode "/home/user" because this is Maemo which is ever unlikely to see apps, desktop, etc running as a different account. I can't remember which package demonstrates this but Nokia have a way of checking for scratchbox (think it's along the lines of "if [ -e /scratchbox/tools/config ]", something like that), if that scratchbox check proves true, you may wish to do something along the lines of: "for userz in `ls /home`; do cp whatever /home/$userz; done" etc. (with the caveat that this only works for already added users, not for users that'll be added later like above). You may just want to do "if not os.path.exists" from your python application, upon its first run, and just copy the files if not existing from that. That'll be pretty much universal as you can get the correct $HOME etc. |
Re: [UPDATED} Quick Clip, a statusbar plugin to save text
Code:
pocketpenguin:~# apt-get install quickclip |
Re: [UPDATED] Quick Clip, a statusbar plugin to save text
Quote:
I already do the if not os.path.exists checks at application startup to ensure the proper files are in place, just liked using pre/post install scripts to get things running from the get-go. I now understand this is a very sloppy way to do things, and will not try to create any user-owned directories or files during application installation. Based on what you just said I did a bit of Googling and came across this topic at StackOverflow: http://stackoverflow.com/questions/5...-account-linux ...and that pretty much confirms everything you've said. In addition, the poster there seemed to think using "sudo echo $HOME" would result in the correct directory being printed. This might explain why this worked fine on my device but not others (the different ways to get root? that was my initial hunch). Thanks for the tips! |
Re: [UPDATED} Quick Clip, a statusbar plugin to save text
Quote:
|
Re: [UPDATED] Quick Clip, a statusbar plugin to save text
Quote:
AFAIK, the application manager uses a helper process (apt-worker) which uses sudo for its root ability and possibly does not inherit root environment variables either and runs dpkg with $HOME = /home/user - but I'm only sure on the apt-worker and sudo part, not sure about variable inheriting here. :) |
Re: [UPDATED} Quick Clip, a statusbar plugin to save text
1 Attachment(s)
skatebiker:
I just built a test version. Do you mind testing it out? It's attached to this post. |
Re: [UPDATED} Quick Clip, a statusbar plugin to save text
Hi all!
I just uploaded 0.4.4-3 to Diablo/Chinook/Fremantle extras-devel. It fixes the installation problems related to the discussion above and uses a patch by qwerty12 (to use Hildon Filechooser instead of GTK). Test away! P.S. The next release should have some cool new features instead of just boring bug fixes! |
Re: [UPDATED] Quick Clip, a statusbar plugin to save text
Quote:
(btw: Quick Clip works great for me so far :)) |
All times are GMT. The time now is 14:44. |
vBulletin® Version 3.8.8