ARandR needs to bu run as root to write config file

Bug #1401814 reported by koskoz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
arandr (Ubuntu)
New
Undecided
Unassigned

Bug Description

Hi,

Using ARandR 0.1.7.1-1 with Ubuntu 14.04 and XFCE, I need to run ARandR with sudo from the command line to get it save the config file in my home directory (the file having root:root as user:group).

If I run it with the GUI ARandR is not able to write the config file and no warning or error is prompted.

Revision history for this message
chrysn (chrysn) wrote : Re: [Bug 1401814] [NEW] ARandR needs to bu run as root to write config file

hello koskoz,

On Fri, Dec 12, 2014 at 09:13:10AM -0000, koskoz wrote:
> Using ARandR 0.1.7.1-1 with Ubuntu 14.04 and XFCE, I need to run ARandR
> with sudo from the command line to get it save the config file in my
> home directory (the file having root:root as user:group).
>
> If I run it with the GUI ARandR is not able to write the config file and
> no warning or error is prompted.

like other x applications, arandr should not be run as root.

there are two possible situations in which arandr could not save the
file:

* your home directory is not writable by your user (and thus,
  ~/.screenlayout can't be created). this situation is pretty much
  beyond the scope of arandr -- all kinds of things stop working when
  you can't write to your own home directory.

* your ~/.screenlayout directory is not writable by your user. (this
  might, for example, happen when the first screen layout you save was
  saved by root). again, arandr can't do much about it.

i've added a todo item to the bug tracker on alioth[1] with respect to
the lack of proper error messages, but to solve your issue, please check
that your home and/or ~/.screenlayout directories are user owned and
writable.

best regards
chrysn

[1] https://alioth.debian.org/tracker/?func=detail&atid=413123&aid=314907&group_id=100834

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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