Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix --geometry option when Nemo is already running #1268

Merged
merged 1 commit into from Sep 2, 2016

Conversation

lukefromdc
Copy link
Contributor

Fix for #569
based on
lukefromdc/caja@9fb1211

This fixes a GApplication command line issue inherited from Nautilus 3.4. The issue is that using --geometry in a second invocation of nemo sets self->priv->geometry in the local instance, but the windows are opened by the remote (already running) instance. That reads it's own version of self->priv->geometry, which is not written to by setting the same variable in the local instance. There are very few ways to pass data from a local command line to "open" but Gapplication provides the "hint" string variable. It can pass the geometry string, which can then be written to self->priv->geometry, making the geometry option work again.

This fixes a GApplication command line issue inherited from Nautilus 3.4. The issue is that using --geometry in a second invocation of nemo sets self->priv->geometry in the local instance, but the windows are opened by the remote (already running) instance. That reads it's own version of self->priv->geometry, which is not written to by setting the same variable in the local instance. There are very few ways to pass data from a local command line to "open" but Gapplication provides the "hint" string variable. It can pass the geometry string, which can then be written to self->priv->geometry, making the geometry option work again.
@clefebvre clefebvre merged commit 3b31f07 into linuxmint:master Sep 2, 2016
@lukefromdc
Copy link
Contributor Author

Very nice cleanup to this, I will see if any of that can be applied to the more
complex case of my Caja branch, where "hint" handles two different options.

On 9/2/2016 at 5:54 AM, "Clement Lefebvre" notifications@github.com wrote:

Merged #1268.

You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#1268 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants