screenshot write permission fail (Vista/7)

Bug #568086 reported by AlexK
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Medium
Unassigned

Bug Description

Ctrl-S for screenshot doesn't work. 0.10.4 Windsows 7 Ultimate x64 unless you change the directory to some generic place (instead of the default user's desktop). Perhaps UAC permissions problem?

Related branches

Revision history for this message
Matthew Gates (matthew-porpoisehead) wrote :

Yes, it's permissions. Win Vista and later set the desktop so apps can't save things there without doing /something/... not sure what apart from running as admin which we probably don't want to do.

Changed in stellarium:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Matthew Gates (matthew-porpoisehead) wrote :

Possible solution: set screenshot dir to My Documents or something for vista and 7. It's annoying though - yet another conditional on the windows version.

Maybe we could have a "open screenshot folder" button from the config dialog where the screenshot directory is set which opens explorer on windows, finder on osx and [something, maybe from a freedesktop standard or using mime types] on *nix.

Revision history for this message
AlexK (4-noone) wrote :

It would be nice to have at least an error message for such a case.

Revision history for this message
Matthew Gates (matthew-porpoisehead) wrote : Re: [Bug 568086] Re: Ctrl-S for screenshot doesn't work

You have one in the log. A notification of some kind would be a good idea.

On 22 April 2010 01:35, AlexK <email address hidden> wrote:
> It would be nice to have at least an error message for such a case.
>
> --
> Ctrl-S for screenshot doesn't work
> https://bugs.launchpad.net/bugs/568086
> You received this bug notification because you are subscribed to
> Stellarium.
>

Revision history for this message
Alejandro (aalejo87) wrote : Re: Ctrl-S for screenshot doesn't work

I have the same problem as AlexK and I finally found a solution on Windows 7 64Bit. My documents, desktop and others are denied as not writeable but I could save a .png in a folder under C:/ ... Just create a folder in a local disk like C: name it like whatever you want, then go to: "C:\Users\YOURUSER\AppData\Roaming\Stellarium and find -> /config.ini" then look for the following lines:

[main]
invert_screenshots_colors = false
restore_defaults = false
screenshot_dir = C:\FOLDERNAME
version = 0.10.5

Replace FOLDERNAME with the folder you just created.
It worked for me!!

Sorry for my bad english, hope it works. No need to run as admin and etc...

Changed in stellarium:
milestone: none → 1.0.0
summary: - Ctrl-S for screenshot doesn't work
+ screenshot write permission fail (Vista/7)
Revision history for this message
Sergey (sergeyvist) wrote :

We can add a manifest to our pe file on windows so it it will require administrator privileges on start.
Is it a good solution ?

Changed in stellarium:
assignee: nobody → Sergey (sergeyvist)
status: Confirmed → In Progress
Revision history for this message
Sergey (sergeyvist) wrote :

Here is a patch.
But it may need some additional actions to do.
I was using VS2009 to build the stellarium so something can be wrong on other dev envirounment.

Put files
mt.exe and stellarium.exe.manifest into util folder

Revision history for this message
Sergey (sergeyvist) wrote :

manifest file
put into /util/

Revision history for this message
Sergey (sergeyvist) wrote :
  • mt.exe Edit (722.0 KiB, application/x-msdos-program)

mt.exe - tool to insert a manifest file
put into /util/ folder

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Patch not work without MSVS.

Revision history for this message
Sergey (sergeyvist) wrote :

Please describe the problem.
Did mt.exe stared ?
If yes than the executable location can be differ from the specified.

Revision history for this message
Alexander Wolf (alexwolf) wrote :

I'm change resource_id and now this patch work.

Changed in stellarium:
milestone: 1.0.0 → 0.11.3
status: In Progress → Fix Committed
Revision history for this message
Alexander Wolf (alexwolf) wrote :
Revision history for this message
Alexander Wolf (alexwolf) wrote :

manifest is solve this issue but ask user for grant permissions on every run. I'm disable manifest and changed for default folder for screenshots for Windows as My Pictures folder.

Diffs: http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/5313 and http://bazaar.launchpad.net/~stellarium/stellarium/trunk/revision/5314

Changed in stellarium:
assignee: Sergey (sergeyvist) → nobody
Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.