Open GoogleCodeExporter opened 9 years ago
Original comment by MeanEYE.rcf
on 22 Apr 2013 at 12:50
Am not sure this is feasible. Looks like Linux doesn't allow setting uid on
scripts as a security measure. Meaning we'd probably have to write a C wrapper
and then deal with the switch.
If you (or anyone else) is familiar with easy method for doing this without
involving gksu, sudo and others let me know.
Original comment by MeanEYE.rcf
on 18 May 2013 at 9:26
Well, I am not a programmer, but I am a tester and user of many programs.
The common thread is usually to see if the program will start from a terminal
with something like 'sudo sunflower'. One might also use an edit of the
shortcut icon settings to accomplish the same.
With that said, I am afraid I do not understand why any program cannot be
started in the same manner. Any user should be able to start a program, which
would give the program that user's permissions.
So the question becomes, why doesn't yours?
Original comment by tech@frontrowcomputer.com
on 19 May 2013 at 7:27
Compiled programs are able to set their own UID (user id). This is not allowed
to scripts for security reasons as one might use such feature to exploit
security hole. There might be a solution to this without writing a binary
application wrapper but at the moment am not familiar with it.
What I wanted to achieve is to switch user id without restarting application
itself. You can still start Sunflower using sudo or gksu and it will behave
accordingly. Am gonna continue searching for solution as I would like to have
this feature. So I am not closing this enhancement request just yet.
Original comment by MeanEYE.rcf
on 19 May 2013 at 7:32
I created a new shortcut and edited the command to:
sudo sunflower %U
However, it will not start at all (see issue 287).
Tried selecting to start in terminal and got error messages:
BDB2053 Freeing read locks for locker 0x182: 13757/140630581163968
BDB2053 Freeing read locks for locker 0x183: 13757/140630581163968
BDB2053 Freeing read locks for locker 0x184: 13757/140630581163968
BDB2053 Freeing read locks for locker 0x185: 13757/140630581163968
Traceback (most recent call last):
File "/usr/share/sunflower/application/main.py", line 29, in <module>
app = MainWindow()
File "/usr/share/sunflower/application/gui/main_window.py", line 702, in __init__
self._restore_window_position()
File "/usr/share/sunflower/application/gui/main_window.py", line 1405, in _restore_window_position
self._paned.set_position(section.get('handle_position'))
TypeError: an integer is required
Failed running with python2.7
Original comment by tech@frontrowcomputer.com
on 22 May 2013 at 8:36
This issue is fixed for next release.
Original comment by MeanEYE.rcf
on 22 May 2013 at 8:46
What is the next realease number I should be looking for in my yumex display?
Thanks.
Original comment by tech@frontrowcomputer.com
on 27 May 2013 at 3:30
Current version is 0.1a-55, so next one will be 56. That's the one you should
be looking for. That said I still didn't release it but planning on to soon.
Original comment by MeanEYE.rcf
on 27 May 2013 at 3:48
Okay. I just downloaded and installed 56 and all is working.
My root shortcut icon is set to "sudo sunflower %U" and it brings up the
program after asking for a password in a terminal.
Selecting either pane turns that pane's path bar to red, so one knows they are
working as root.
Three improvements might be nice:
Make a sunflower icon that represents the program as root. (Maybe just a red
"Root" across the sunflower?)
Make the path bar only show red for those directories that are only normally
root accessable
Make the program work without a terminal window when root.
In any case, thanks so much for the great work. It is becoming much more
useful.
Original comment by tech@frontrowcomputer.com
on 13 Jun 2013 at 6:38
Thanks for kind words. You can actually start program without terminal by
issuing "gksu sunflower %U". Other ideas are good especially icon. But as I am
not a graphic designer, I'll have to wait for someone to do that. :D
Original comment by MeanEYE.rcf
on 13 Jun 2013 at 6:42
Bad news, gksu sunflower %U did not work. Please see attachment shot.
I also forgot to mention that it would be good if the program title bar showed
"ROOT" when in root mode.
Thanks again.
Original comment by tech@frontrowcomputer.com
on 13 Jun 2013 at 7:13
Attachments:
Ah, you are using Lxde/Xfce, you either have a different one installed or
gksudo. Either way, you can install it and that will solve your problem. There
aren't many dependencies.
Original comment by MeanEYE.rcf
on 13 Jun 2013 at 7:27
I don't know another than sudo. But I tried gksudo, and got the same error
message as before.
Thanks, but I'd better leave well enough alone.
Original comment by tech@frontrowcomputer.com
on 14 Jun 2013 at 1:53
Could you give me the link to download the logo image? I will be glad to try
to edit it for root mode.
Original comment by tech@frontrowcomputer.com
on 18 Jun 2013 at 11:34
Sure. It's SVG in repository under images.
https://code.google.com/p/sunflower-fm/source/browse/
Original comment by MeanEYE.rcf
on 18 Jun 2013 at 11:49
I was unable to open it under Inkscape as an SVG. I must have downloaded it
incorrectly or something. Can you find me another download site or something?
Sorry I'm having such trouble, but thanks for your help.
Original comment by tech@frontrowcomputer.com
on 19 Jun 2013 at 12:12
You probably saved the whole page as an SVG instead of raw file. Try with this:
https://sunflower-fm.googlecode.com/hg/images/sunflower.svg
Original comment by MeanEYE.rcf
on 19 Jun 2013 at 6:53
I see the image in the html page, but the image is unselectable. How do I just
get the raw image?
Original comment by tech@frontrowcomputer.com
on 19 Jun 2013 at 2:47
Under chrome hit CTRL+S and save it as SVG or just use wget in combination with
that URL.
Original comment by MeanEYE.rcf
on 20 Jun 2013 at 2:18
I don't use chrome, but wget worked just fine.
Thanks very much.
Now let's see what I can do with it. I'll keep you posted.
Original comment by tech@frontrowcomputer.com
on 20 Jun 2013 at 5:56
Attached is the first idea. I converted it to a png, which appeared to be
necessary for it to be used as an icon.
Original comment by tech@frontrowcomputer.com
on 21 Jun 2013 at 12:54
Attachments:
While most systems support SVG as icons it is true that we need provide PNG
primarily. Concept is not bad but you have to think about the fact that same
icon is used for window and desktop so any kind of lettering might get
unreadable. What I had in mind was changing petal colors to red or something.
Feel free to play with it. I'd be more than happy to help our provide with
feedback.
Original comment by MeanEYE.rcf
on 21 Jun 2013 at 1:09
Original issue reported on code.google.com by
tech@frontrowcomputer.com
on 21 Apr 2013 at 8:46