Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
421 commits
Select commit Hold shift + click to select a range
d283178
Changed variable name `_stat` to `stat_buf`
cribalik Jun 1, 2015
c221aa4
Merge pull request #1754 from samueldr/master
dnschneid Jun 4, 2015
91b3e35
Update CONTRIBUTORS
dnschneid Jun 4, 2015
e739ddd
Input-related settings no longer blocked on Freon
cribalik Jun 5, 2015
8bccdcf
Only the chromebook model is used with Freon
cribalik Jun 6, 2015
3b1b5f8
Updated comment
cribalik Jun 6, 2015
1ef1bb6
Update croutonxinitrc-wrapper
cribalik Jun 8, 2015
62aa41d
Using access instead of stat for checking file existence
cribalik Jun 13, 2015
d0e2266
Control path cleanup
cribalik Jun 13, 2015
82a0b61
Merge branch 'freon-keys' of https://github.com/cribalik/crouton into…
dnschneid Jun 17, 2015
733f66a
Merge branch 'freon-kbmodel' of https://github.com/cribalik/crouton i…
dnschneid Jun 17, 2015
17f6ec1
Minor style cleanup
dnschneid Jun 17, 2015
6fdf09a
Bump extension version
dnschneid Jun 17, 2015
5c73c9f
Update CONTRIBUTORS
dnschneid Jun 17, 2015
7dc65ab
Improved bootstrapping. Fixes #1868
tonyxue Jun 18, 2015
a8ca6fa
Merge branch 'update_bootstrap' of https://github.com/tonyxue/cruise
dnschneid Jun 18, 2015
c7b34e7
Indentation fix
dnschneid Jun 18, 2015
6271b8d
daemon.sh: Remove dependency on chromite.lib
drinkcat Jun 20, 2015
87ca5c2
daemon.sh: Do not fail if status.log does not exist.
drinkcat Jun 20, 2015
f8f52df
daemon.sh: Increase fetch timeout
drinkcat Jun 20, 2015
19d1cec
daemon.sh: Handle -freon variants properly
drinkcat Jun 20, 2015
550daff
daemon.sh: Freon variant name detection: _freon or -freon?
drinkcat Jun 20, 2015
d3da718
daemon.sh: Use git -C instead of cd in subshell
drinkcat Jun 21, 2015
5760d5b
Merge pull request #1883 from drinkcat/crouton-autotest
dnschneid Jun 21, 2015
89796a9
Merge branch 'bootstrap'
dnschneid Jun 21, 2015
f25bbc5
Fix type
dumpweed Jun 25, 2015
062933b
Lookup release name correctly. Fixes #1880.
tonyxue Jun 28, 2015
8ced6c4
Improved lookup method
tonyxue Jun 29, 2015
a9d69be
bootstrap: change the extension name from .xz to .gz when downloading…
arbuztw Jul 8, 2015
3c0ec20
Use http redirector by default to access the Debian archive
JaviMerino Jul 8, 2015
f106756
Add tests for checking the status reported by edit-chroot -l of an en…
arbuztw Jul 9, 2015
b2b98d1
Fix the status of an encrypted chroot reported by edit-chroot
arbuztw Jul 9, 2015
028d7e6
Merge branch 'fix-getrelease.sh' of https://github.com/tonyxue/cruise
dnschneid Jul 10, 2015
1c72bd8
Merge branch 'master' of https://github.com/JaviMerino/crouton
dnschneid Jul 10, 2015
6352f64
Merge branch 'patch-1' of https://github.com/dumpweed/crouton
dnschneid Jul 10, 2015
4df7c3d
Merge branch 'debootstrap' of https://github.com/arbuztw/crouton
dnschneid Jul 10, 2015
3975177
Merge branch 'encrypt-stat' of https://github.com/arbuztw/crouton
dnschneid Jul 10, 2015
fd812be
Update CONTRIBUTORS
dnschneid Jul 15, 2015
643d251
Respect armel for architecture flag
taterbase Jul 17, 2015
6351bd7
Merge pull request #1945 from taterbase/fix/respect-armel
dnschneid Jul 17, 2015
aba2c94
Update CONTRIBUTORS
dnschneid Jul 17, 2015
3477bab
freon: Intercept open64 calls; fixes Xorg on Debian stretch-armhf.
mkasick Jul 28, 2015
17d357d
Add Wily Werewolf to list of test releases
kennystrawnmusic Jul 29, 2015
34f1b78
Merge pull request #1973 from mkasick/freon
dnschneid Jul 30, 2015
9ce9902
Merge pull request #1979 from StrawnPoint04/patch-2
dnschneid Jul 30, 2015
2e72ee5
Update CONTRIBUTORS
dnschneid Jul 30, 2015
f8fdfb0
Silence harmless sources.d messages
dnschneid Jul 31, 2015
8766950
Update xfce
DennisLfromGA Aug 1, 2015
50258ae
Update xfce
DennisLfromGA Aug 1, 2015
d45e361
Update xfce
DennisLfromGA Aug 4, 2015
e3aff6f
Update xfce
DennisLfromGA Aug 4, 2015
ee1fde7
Merge branch 'patch-3' of https://github.com/DennisLfromGA/crouton
dnschneid Aug 4, 2015
bbb94b8
freon, xorg: Modify Intel driver to fix black screen on switch/exit.
mkasick Aug 6, 2015
fc72253
stateful_partition symlink for fresh installs
arbuztw Aug 10, 2015
1399a21
Ubuntu Vivid has integrated modesetting into core
arbuztw Aug 10, 2015
ed6bfad
Merge branch 'symlink' of https://github.com/arbuztw/crouton
dnschneid Aug 11, 2015
ca52fc4
Merge branch 'modesetting' of https://github.com/arbuztw/crouton
dnschneid Aug 11, 2015
9d9202d
Merge branch 'freon' of https://github.com/mkasick/crouton
dnschneid Aug 11, 2015
2e2e02c
Remove utopic from testing.
dnschneid Aug 11, 2015
f6b810f
CONTRIBUTORS: ignore case
dnschneid Aug 11, 2015
bc481c0
chroot-etc/xserverrc-x11-freon
drinkcat Nov 14, 2014
018fe19
freon.c: Dark magic LD_PRELOAD hack to make X11 happy in freon
drinkcat Nov 14, 2014
9fae9f0
Add support for Xorg on K1 (after 6689).
dnschneid Jan 15, 2015
aba58f2
Dedup makefile
dnschneid Feb 7, 2015
14ce3b7
Compile and install croutonfreon.so
dnschneid Feb 7, 2015
77a8bfd
Fix compile warnings and clean up dbus calls
dnschneid Feb 7, 2015
316b2f4
Support Freon in xserverrc-xorg
dnschneid Feb 7, 2015
786be70
Add display lock file to coordinate active display
dnschneid Feb 9, 2015
847da85
Add freon support to croutoncycle
dnschneid Feb 9, 2015
64ebafe
Use SNA+TearFree if FBC is present.
dnschneid Feb 10, 2015
77ba03a
Fix target display switching and xiwi switching with Xephyr
dnschneid Feb 12, 2015
3441400
Add triggerhappy as the system-wide keyboard daemon
dnschneid Feb 14, 2015
503f38a
Disallow launching Xorg from frecon
dnschneid Feb 12, 2015
67d225d
Kill frecon on launching xorg to workaround crbug.com/457075
dnschneid Feb 15, 2015
e0fecb4
Replace triggerhappy with croutontriggerd.
dnschneid Feb 20, 2015
f4ebbec
Style improvements.
dnschneid Feb 20, 2015
c08f88e
Test xorg on K1 as well
dnschneid Feb 21, 2015
db1f672
Need bsdmainutils for hexdump
dnschneid Feb 23, 2015
c779b00
Fix croutontriggerd on 32-bit systems
dnschneid Feb 23, 2015
36da63b
log invalid signatures
DennisLfromGA Feb 24, 2015
608c9ec
Fix X11 backend selection
dnschneid Feb 27, 2015
17ff913
Prevent X11 from touching the vgem device, which is broken in stock Xorg
dnschneid Feb 27, 2015
d697cec
Use the display number in the log filename for freon.
dnschneid Feb 27, 2015
51416d0
Use croutonfreon.so for xiwi too.
dnschneid Feb 27, 2015
2654db1
Fix xorg+xiwi on precise. Fixes #1294
dnschneid Feb 27, 2015
4f75f5c
Install dmz-cursor-theme in x11-common
dnschneid Feb 27, 2015
8e264b6
Move vgem workaround to its own .so and use on all platforms
dnschneid Feb 27, 2015
13f1b82
Fix edit-chroot move filesystem check. Fixes 1441
dnschneid Mar 1, 2015
46ec4b6
Print out all of the pids stopping unmount-chroot, not just one
dnschneid Mar 1, 2015
96769f2
Ignore processes that session_manager has inherited.
dnschneid Mar 1, 2015
76eaf1a
Initial hack of a "xiwi" application that runs an app in its own cros…
dnschneid Nov 26, 2014
1a0c606
It's a window, not a tab.
dnschneid Feb 17, 2015
2c1692e
Generate kiwi window title based off of active window
dnschneid Feb 17, 2015
ae64481
extension: Always send confirmation when receiving a windowlist
dnschneid Feb 17, 2015
44d6e82
Push windowlist updates on window switch
dnschneid Feb 17, 2015
21db015
Update xiwi on title change
dnschneid Feb 17, 2015
eba1487
Improve app close responsiveness/correctness.
dnschneid Feb 17, 2015
0304aad
Set the root cursor
dnschneid Feb 18, 2015
288cd34
Prevent crouton from segfaulting on bad cursors.
dnschneid Feb 18, 2015
7145da1
kiwi: fall back on the default cursor when data is unavailable
dnschneid Feb 18, 2015
acd36ef
Revert "kiwi: fall back on the default cursor when data is unavailable"
dnschneid Feb 18, 2015
38b1870
Add nicer help and tip text for the xiwi command.
dnschneid Feb 18, 2015
bae4cc9
Add in-app window cycling shortcuts.
dnschneid Feb 21, 2015
6bc4e19
Bump extension version and remove unneeded tabs permission.
dnschneid Feb 22, 2015
263f3fa
Handle commands like "xiwi startxfce4" correctly.
dnschneid Feb 23, 2015
6f2d6c6
Xiwi doesn't need croutonfreon.so anymore
dnschneid Mar 1, 2015
6f7fc64
Patch Xorg to avoid udev probing.
dnschneid Mar 4, 2015
4a825e9
selectively apply vgem hack
Mar 16, 2015
8b3ffe9
croutonversion: Add kernel version and freon status to croutonversion
drinkcat Mar 23, 2015
bebf427
croutoncycle: Fix croutoncycle display/list with Xephyr
drinkcat Mar 23, 2015
2d9acf4
extension: Test for view.document.readyState instead of document.
drinkcat Mar 23, 2015
9460458
Fix X11 auto-selection for Tegra K1.
dnschneid Mar 26, 2015
021a1f0
Handle the eventual move of Samsung Exynos to Freon
dnschneid Mar 26, 2015
a6d1d68
Add croutonversion
DennisLfromGA Mar 26, 2015
f9ba7fa
croutontriggerd: Support use of right-{ctrl,shift,alt} in trigger.
mkasick Mar 26, 2015
e80e663
Update CONTRIBUTORS
dnschneid Mar 28, 2015
383d10f
xiwi-app: use i3 instead of ratpoison
dnschneid Mar 26, 2015
729c547
xiwi: Minor cleanup
dnschneid Mar 26, 2015
80300c7
Allow for user-specific init scripts for xiwi apps.
dnschneid Mar 28, 2015
d8627e8
Add -f to xiwi to force xiwi to remain open
dnschneid Mar 28, 2015
4ec9bf0
Improve error logging in fbserver.c
dnschneid Mar 31, 2015
9828cfc
Add CROUTON_CONNECTED property for xiwi displays
dnschneid Mar 31, 2015
6329b9c
xiwi -f: close when the window is closed if nothing is shown
dnschneid Mar 31, 2015
941c722
Recursively autobuild the extension pnacl
dnschneid Mar 31, 2015
c3a0779
Support parameters in XMETHOD
dnschneid Mar 31, 2015
1ec8081
Support extra parameters when launching xiwi windows.
dnschneid Mar 1, 2015
319f739
Pass xiwi args to the extension
dnschneid Mar 31, 2015
a085ea2
xiwi: start in windowed mode unless -F is supplied.
dnschneid Mar 31, 2015
79a9d54
Remove unnecessary quotes on object definitions.
dnschneid Apr 1, 2015
fadbf2b
Tab support!
dnschneid Apr 1, 2015
321297a
Various review fixes.
dnschneid Apr 2, 2015
31eb7e5
Enable javascript strict mode
dnschneid Apr 2, 2015
57e0edf
Fix race between tab/window creation and registration
dnschneid Apr 2, 2015
40cfadc
Simplify the titlebar.
dnschneid Apr 2, 2015
ebbbffa
Clean up argument processing
dnschneid Apr 2, 2015
ce7170b
Close tags and provide style type
dnschneid Apr 2, 2015
219adab
xiwi: check for a valid command before launching X server
dnschneid Apr 2, 2015
27bfcef
Blank out the title if no window is detected
dnschneid Apr 2, 2015
1b11d9f
xiwi: Detect immediate forks and infer -f for them.
dnschneid Apr 2, 2015
f0c8585
Fix key generation to not settle for 62 or 63 bytes.
dnschneid Apr 2, 2015
5943635
xiwi: make the window close immediately on quit.
dnschneid Apr 2, 2015
d3e1785
Send croutonversion to stderr, not stdout
dnschneid Apr 2, 2015
6b57aa9
Fix error with old chroots
dnschneid Apr 5, 2015
3af83b9
Bump extension version
dnschneid Apr 5, 2015
1f7aae8
Fix popup race that started failing. Fixes #1584
dnschneid Apr 9, 2015
4092c4a
Bump extension version
dnschneid Apr 9, 2015
201541e
Add a badge with the number of windows
dnschneid Apr 9, 2015
6a20a03
Add install_dummy function to spoof dependencies.
dnschneid Feb 13, 2015
d2e37ee
Avoid network-manager issues on gtk desktop targets
dnschneid Feb 17, 2015
9e90ac5
Avoid .xscreensaver conflicts with xfce-desktop
dnschneid Feb 17, 2015
c495b4d
Tweaked usage message
DennisLfromGA Apr 11, 2015
7dfd584
Added back default behavior
DennisLfromGA Apr 12, 2015
ed61c03
Sends username and passphrase prompts to /dev/tty when necessary
dnschneid Dec 28, 2014
8f9624f
Bump extension version
dnschneid Apr 13, 2015
14c57e2
Create startxiwi
DennisLfromGA Apr 14, 2015
0e72a71
Update xiwi
DennisLfromGA Apr 14, 2015
125f974
Fix Example
DennisLfromGA Apr 14, 2015
a307a41
added check for options.
DennisLfromGA Apr 15, 2015
df16f42
Makefile: added new target for libs (croutonfreon.so, croutonxorg.so …
kanner Apr 15, 2015
216978e
Makefile: targets refactoring
kanner Apr 16, 2015
91efe86
Makefile: croutonxorg.so target removing
kanner Apr 16, 2015
cf18e73
Makefile: added generic .so target rule
kanner Apr 17, 2015
3a34bd5
Makefile: edited wrong dependency for SRCTARGETS
kanner Apr 17, 2015
136039a
Fix #1045, add a check for /etc/rc.local
tonyxue Apr 21, 2015
18ad086
Check anyway no matter how many lines in rc.local
tonyxue Apr 21, 2015
5534047
Update CONTRIBUTORS
dnschneid Apr 23, 2015
0144196
simplified implementation
tonyxue Apr 24, 2015
3d9d458
add trap and wait for the forked process
tonyxue Apr 25, 2015
4ef8e54
vivid added below utopic
tedm Apr 26, 2015
1b93397
Update CONTRIBUTORS
dnschneid Apr 27, 2015
203c755
Add Debian stretch (pending testing)
dnschneid Apr 27, 2015
fdf0893
fix the order
tonyxue Apr 28, 2015
fabfa71
Accept the octopus, for it tested well
dnschneid Apr 28, 2015
8b60508
improve readability
tonyxue Apr 29, 2015
50ee9fc
Allow apt-get update to fail.
dnschneid Apr 30, 2015
22ee140
Allow *all* apt-get updates to fail.
dnschneid Apr 30, 2015
c0f8317
always true for kill
tonyxue May 3, 2015
20c7524
add a space
tonyxue May 4, 2015
6452143
Suggest using enter-chroot on Freon
DennisLfromGA May 4, 2015
998c8d8
Change the license to 2015
tonyxue May 7, 2015
498bd5c
disallow xorg to listen for tcp
haodemon May 11, 2015
2e6d21f
Update CONTRIBUTORS
dnschneid May 11, 2015
86fb38b
Added a volume script with interface similar to brightness.
May 16, 2015
34bebed
Support dependencies in install_dummy
dnschneid Apr 16, 2015
04838ee
Remove exynos restrictions
dnschneid Apr 16, 2015
86b9e36
Pull in quantal backports on ARM precise
dnschneid Mar 26, 2015
dd5fea7
Auto-install libgle2-mesa and libegl1-mesa for backports
dnschneid Apr 16, 2015
2d914f7
Use modesetting on Freon (fbdev doesn't work)
dnschneid Mar 26, 2015
a323cf4
Avoid forcing the intel driver when it won't work.
dnschneid Apr 16, 2015
7a8f793
xorg package is broken on arm/precise, so manually apply equivalent
dnschneid Apr 16, 2015
5315e9e
Remove fbdev and intel explicitly.
dnschneid Apr 16, 2015
254b859
Refactor xorg target.
dnschneid May 5, 2015
bd04aab
Give up on Wheezy/Kali running native Xorg
dnschneid May 5, 2015
35a4789
Sid has modesetting built into xserver-xorg-core
dnschneid May 6, 2015
bbdad9a
Enable xorg test on samsung+freon
dnschneid May 13, 2015
9633e43
volume script: Now more like the other scripts.
May 17, 2015
8ef1345
volume: Passed through shellcheck. Found small issues, fixed them.
May 18, 2015
66c0a53
Unconditionally remove unwanted drivers.
dnschneid May 18, 2015
fb86ba2
volume: Now uses amixer + various enhancements
May 18, 2015
7d27be4
volume: getting the mute information is less likely to break.
May 18, 2015
3eb6421
volume: getting the mute information is even less likely to break.
May 18, 2015
29c482c
volume: Various asked changes (math trickery/style/bug)
May 18, 2015
7667170
volume: Implemented `get` subcommand + code style.
May 20, 2015
9441429
croutonfbserver now sends information to kiwi nacl module regarding w…
cribalik May 28, 2015
7bed77c
Incremented protocol version
cribalik May 30, 2015
8c2e067
volume: Check that amixer works first of all.
May 31, 2015
66b53e8
Changed variable name `_stat` to `stat_buf`
cribalik Jun 1, 2015
1e35435
Update CONTRIBUTORS
dnschneid Jun 4, 2015
2becbce
Input-related settings no longer blocked on Freon
cribalik Jun 5, 2015
0f203a0
Only the chromebook model is used with Freon
cribalik Jun 6, 2015
3eab90b
Updated comment
cribalik Jun 6, 2015
562612d
Update croutonxinitrc-wrapper
cribalik Jun 8, 2015
8d81b62
Using access instead of stat for checking file existence
cribalik Jun 13, 2015
8913db5
Control path cleanup
cribalik Jun 13, 2015
f186373
Minor style cleanup
dnschneid Jun 17, 2015
de4b150
Bump extension version
dnschneid Jun 17, 2015
afff9db
Update CONTRIBUTORS
dnschneid Jun 17, 2015
a34af10
Improved bootstrapping. Fixes #1868
tonyxue Jun 18, 2015
a6f616c
Indentation fix
dnschneid Jun 18, 2015
dc09ac1
daemon.sh: Remove dependency on chromite.lib
drinkcat Jun 20, 2015
f08bf65
daemon.sh: Do not fail if status.log does not exist.
drinkcat Jun 20, 2015
5182348
daemon.sh: Increase fetch timeout
drinkcat Jun 20, 2015
c9e3a9d
daemon.sh: Handle -freon variants properly
drinkcat Jun 20, 2015
fbfe769
daemon.sh: Freon variant name detection: _freon or -freon?
drinkcat Jun 20, 2015
247605b
daemon.sh: Use git -C instead of cd in subshell
drinkcat Jun 21, 2015
191a9cf
Fix type
dumpweed Jun 25, 2015
44cdd2a
Lookup release name correctly. Fixes #1880.
tonyxue Jun 28, 2015
766528c
Improved lookup method
tonyxue Jun 29, 2015
c94f882
bootstrap: change the extension name from .xz to .gz when downloading…
arbuztw Jul 8, 2015
4adb573
Use http redirector by default to access the Debian archive
JaviMerino Jul 8, 2015
c0e5bf4
Add tests for checking the status reported by edit-chroot -l of an en…
arbuztw Jul 9, 2015
aa9965c
Fix the status of an encrypted chroot reported by edit-chroot
arbuztw Jul 9, 2015
f5a697a
Update CONTRIBUTORS
dnschneid Jul 15, 2015
dbb7b1a
Respect armel for architecture flag
taterbase Jul 17, 2015
b528616
Update CONTRIBUTORS
dnschneid Jul 17, 2015
f6d61a1
freon: Intercept open64 calls; fixes Xorg on Debian stretch-armhf.
mkasick Jul 28, 2015
3c3e9cb
Add Wily Werewolf to list of test releases
kennystrawnmusic Jul 29, 2015
ef03041
Update CONTRIBUTORS
dnschneid Jul 30, 2015
28db23d
Silence harmless sources.d messages
dnschneid Jul 31, 2015
67dcc97
Update xfce
DennisLfromGA Aug 1, 2015
a22f730
Update xfce
DennisLfromGA Aug 1, 2015
6ce01bc
Update xfce
DennisLfromGA Aug 4, 2015
70e45be
Update xfce
DennisLfromGA Aug 4, 2015
0d575e0
freon, xorg: Modify Intel driver to fix black screen on switch/exit.
mkasick Aug 6, 2015
fa1e251
stateful_partition symlink for fresh installs
arbuztw Aug 10, 2015
d6b86e0
Ubuntu Vivid has integrated modesetting into core
arbuztw Aug 10, 2015
ae4871b
Remove utopic from testing.
dnschneid Aug 11, 2015
35609c0
CONTRIBUTORS: ignore case
dnschneid Aug 11, 2015
2a39f44
arch working on Chromebook2
BooDoo Aug 23, 2015
83aba2c
Bring in clean-up from a full merge
BooDoo Aug 23, 2015
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
@@ -1,22 +1,33 @@
Alex Bennée
Alfred Suleymanov
Andrew Kanner
Aron Griffis
Blaine Bublitz
Chris Galle
Christopher Mårtensson
Corey Garst
David Schneider
Dennis Lockhart
dimonf
dumpweed
George Shank
Igor Bukanov
Javi Merino
Jim Tittsler
John Tantalo
Kenny Strawn
Maurice van Kruchten
Micah Lee
Michael Orr
Mike Kasick
Mikito Takada
Nevada Romsdahl
Nicolas Boichat
Samuel Dionne-Riel
Stephen Barber
Steven Maude
Ted Matsumura
Tobbe Lundberg
Tony Xue
Yu-Hsi Chiang
Yuri Pole
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) 2014 The crouton Authors. All rights reserved.
// Copyright (c) 2015 The crouton Authors. All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
Expand Down
24 changes: 18 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

TARGET = crouton
EXTTARGET = crouton.zip
SRCTARGETS = $(patsubst src/%.c,crouton%,$(wildcard src/*.c))
LIBS = src/freon.c
LIBSTARGETS = $(patsubst src/%.c, crouton%.so, $(LIBS))
SRCTARGETS = $(patsubst src/%.c,crouton%,$(filter-out $(LIBS),$(wildcard src/*.c)))
CONTRIBUTORS = CONTRIBUTORS
WRAPPER = build/wrapper.sh
SCRIPTS := \
Expand All @@ -15,6 +17,9 @@ SCRIPTS := \
$(wildcard installer/*/*) \
$(wildcard src/*) \
$(wildcard targets/*)
EXTPEXE = host-ext/crouton/kiwi.pexe
EXTPEXESOURCES = $(wildcard host-ext/nacl_src/*.h) \
$(wildcard host-ext/nacl_src/*.cc)
EXTSOURCES = $(wildcard host-ext/crouton/*)
GENVERSION = build/genversion.sh
CONTRIBUTORSSED = build/CONTRIBUTORS.sed
Expand All @@ -28,6 +33,7 @@ croutoncursor_LIBS = -lX11 -lXfixes -lXrender
croutonfbserver_LIBS = -lX11 -lXdamage -lXext -lXfixes -lXtst
croutonwmtools_LIBS = -lX11
croutonxi2event_LIBS = -lX11 -lXi
croutonfreon.so_LIBS = -ldl

croutonwebsocket_DEPS = src/websocket.h
croutonfbserver_DEPS = src/websocket.h
Expand Down Expand Up @@ -56,13 +62,19 @@ $(TARGET): $(WRAPPER) $(SCRIPTS) $(GENVERSION) $(GITHEAD) Makefile
$(EXTTARGET): $(EXTSOURCES) Makefile
rm -f $(EXTTARGET) && zip -q --junk-paths $(EXTTARGET) $(EXTSOURCES)

$(SRCTARGETS): src/$(patsubst crouton%,src/%.c,$@) $($@_DEPS) Makefile
$(EXTPEXE): $(EXTPEXESOURCES)
$(MAKE) -C host-ext/nacl_src

$(SRCTARGETS): $(patsubst crouton%,src/%.c,$@) $($@_DEPS) Makefile
gcc $(CFLAGS) $(patsubst crouton%,src/%.c,$@) $($@_LIBS) -o $@

$(LIBSTARGETS): $(patsubst crouton%.so,src/%.c,$@) $($@_DEPS) Makefile
gcc $(CFLAGS) -shared -fPIC $(patsubst crouton%.so,src/%.c,$@) $($@_LIBS) -o $@

extension: $(EXTTARGET)

$(CONTRIBUTORS): $(GITHEAD) $(CONTRIBUTORSSED)
git shortlog -s | sed -f $(CONTRIBUTORSSED) | sort -u > $(CONTRIBUTORS)
git shortlog -s | sed -f $(CONTRIBUTORSSED) | sort -uf > $(CONTRIBUTORS)

contributors: $(CONTRIBUTORS)

Expand All @@ -74,9 +86,9 @@ release: $(CONTRIBUTORS) $(TARGET) $(RELEASE)
force-release: $(CONTRIBUTORS) $(TARGET) $(RELEASE)
$(RELEASE) -f $(TARGET)

all: $(TARGET) $(SRCTARGETS) $(EXTTARGET)
all: $(TARGET) $(SRCTARGETS) $(LIBSTARGETS) $(EXTTARGET)

clean:
rm -f $(TARGET) $(EXTTARGET) $(SRCTARGETS)
rm -f $(TARGET) $(EXTTARGET) $(SRCTARGETS) $(LIBSTARGETS)

.PHONY: all clean contributors extension release force-release
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Examples
2. Run `sh ~/Downloads/crouton -r list` to list the recognized releases and
which distros they belong to.

### Wasteful rendundancies are wasteful: one clipboard, one browser, one window
### Wasteful redundancies are wasteful: one clipboard, one browser, one window
1. Install the [crouton extension](https://goo.gl/OVQOEt) into Chromium OS.
2. Add the `extension` or `xiwi` version to your chroot.
3. Try some copy-pasta, or uninstall all your web browsers from the chroot.
Expand Down Expand Up @@ -355,7 +355,7 @@ There's a way For Everyone to help!

License
-------
crouton (including this eloquently-written README) is copyright © 2014 The
crouton (including this eloquently-written README) is copyright © 2015 The
crouton Authors. All rights reserved. Use of the source code included here is
governed by a BSD-style license that can be found in the LICENSE file in the
source tree.
2 changes: 2 additions & 0 deletions build/CONTRIBUTORS.sed
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
s/^[ \t0-9]*//
s/^DennisL.*$/Dennis Lockhart/
s/^divx118$/Maurice van Kruchten/
s/^tedm$/Ted Matsumura/
/^root$/d
/^ttk153$/d
/^lnxsrt$/d
/\?/d
2 changes: 1 addition & 1 deletion build/genversion.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion build/release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion build/wrapper.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file of the source repository, which has been replicated
# below for convenience of distribution:
Expand Down
2 changes: 1 addition & 1 deletion chroot-bin/brightness
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion chroot-bin/crouton-noroot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand Down
2 changes: 1 addition & 1 deletion chroot-bin/crouton-unity-autostart
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
Expand Down
2 changes: 1 addition & 1 deletion chroot-bin/croutonclip
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
#
Expand Down
83 changes: 58 additions & 25 deletions chroot-bin/croutoncycle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh -e
# Copyright (c) 2014 The crouton Authors. All rights reserved.
# Copyright (c) 2015 The crouton Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

Expand Down Expand Up @@ -76,9 +76,6 @@ export XAUTHORITY=''
# Set to y if there is any xiwi instance running
xiwiactive=''

# Set to y if aura is running without a X server
noaurax=''

# Prepare display list for easier looping
displist=''
for disp in /tmp/.X*-lock; do
Expand All @@ -91,33 +88,36 @@ for disp in /tmp/.X*-lock; do
| grep -q 'INTEGER'; then
displist="$displist $disp"
elif DISPLAY="$disp" xprop -root 'CROUTON_XMETHOD' 2>/dev/null \
| grep -q '= "xiwi"$'; then
| grep -q '= "xiwi'; then
displist="$displist $disp"
xiwiactive='y'
fi
done

# host-x11 fails if no Chromium OS server exist
if host-x11 true 2>/dev/null; then
# Set to the freon display owner if freon is used
freonowner=''
if [ ! -f "/sys/class/tty/tty0/active" ]; then
if [ -f "/tmp/crouton-lock/display" ]; then
read -r freonowner < "/tmp/crouton-lock/display"
fi
freonowner="${freonowner:-0}"
winlist="aura*"
aurawin="aura"
tty=''
else
# List windows on :0. Includes aura
winlist="`host-x11 croutonwmtools list nim | \
sort | awk '{ printf $NF " " }'`"
aurawin="`host-x11 croutonwmtools list ni | \
awk '$1 == "aura_root_0" { print $NF; exit }'`"
tty="`cat '/sys/class/tty/tty0/active'`"
else
# No X11 server
noaurax='y'
winlist="aura*"
aurawin="aura"
tty="tty1"
fi

# Combine the two
fulllist="$winlist$displist"
fulllist="${fulllist% }"

if [ "$tty" = 'tty1' ]; then
if [ "$freonowner" = 0 -o "$tty" = 'tty1' ]; then
# Either in Chromium OS, xephyr/xiwi chroot, or window.
# Active window is starred.
for disp in $winlist; do
Expand All @@ -133,7 +133,7 @@ if [ "$tty" = 'tty1' ]; then
break
fi
done
else
elif [ -z "$freonowner" ]; then
# Poll the displays to figure out which one owns this VT
curdisp="$tty"
for disp in $displist; do
Expand All @@ -143,6 +143,14 @@ else
break
fi
done
else
# Match the pid to the current freon owner
for lockfile in /tmp/.X*-lock; do
if grep -q "\\<$freonowner$" "$lockfile"; then
curdisp="${lockfile#*X}"
curdisp=":${curdisp%%-*}"
fi
done
fi

# List the displays if requested
Expand All @@ -153,13 +161,14 @@ if [ "$cmd" = 'l' -o "$cmd" = 'd' ]; then
'/var/host/lsb-release'`"
fi
(
if [ -z "$noaurax" ]; then
if [ -z "$freonowner" ]; then
host-x11 croutonwmtools list nim
else
echo "aura_root_0 aura*"
fi
) | sort | while read -r line; do
disp="${line##* }"
display="${disp%"*"}"
line="${line% *}"
number='0'
active=' '
Expand All @@ -169,7 +178,7 @@ if [ "$cmd" = 'l' -o "$cmd" = 'd' ]; then
if [ "${number#[0-9]}" = "$number" ]; then
number='0'
else
disp=":$number"
display=":$number"
line="`getname "$number"`"
fi
fi
Expand All @@ -187,11 +196,11 @@ if [ "$cmd" = 'l' -o "$cmd" = 'd' ]; then
fi
if [ "$line" = 'aura_root_0' ]; then
line="$chromiumos"
disp="cros"
display="cros"
window=''
fi
if [ "$cmd" = 'l' ]; then
echo "${disp%"*"}$active $line"
echo "$display$active $line"
fi
done
for disp in $displist; do
Expand All @@ -216,6 +225,12 @@ fi
if [ -n "${cmd#[pn]}" ]; then
if [ "${cmd#:}" != "$cmd" ]; then
destdisp="$cmd"
# Resolve a xephyr display into its ID
if DISPLAY="$destdisp" xprop -root 'CROUTON_XMETHOD' 2>/dev/null \
| grep -q '= "xephyr"$'; then
destdisp="`host-x11 croutonwmtools list ni | \
awk "/^Xephyr on $destdisp\.0/"' { print $NF; exit }'`"
fi
else
i=0
destdisp=''
Expand Down Expand Up @@ -261,22 +276,24 @@ if [ "$destdisp" = "$curdisp" -a -z "$force" ]; then
fi

# Make sure tap-to-click is enabled
if [ -z "$noaurax" ] && hash xinput 2>/dev/null; then
if [ -z "$freonowner" ] && hash xinput 2>/dev/null; then
for id in `host-x11 xinput --list --id-only`; do
host-x11 xinput set-prop "$id" 'Tap Paused' 0 2>/dev/null || true
done
fi

# Determine if the target display is on a VT
if [ "${destdisp#:}" = "$destdisp" ]; then
if [ -z "$noaurax" ]; then
if [ -z "$freonowner" ]; then
eval "`host-x11`"
# Raise the right window after chvting, so that it can update
if [ "$tty" != 'tty1' ]; then
sudo -n chvt 1
sleep .1
fi
croutonwmtools raise "${destdisp%"*"}"
elif [ "${freonowner:-0}" != 0 ]; then
kill -USR1 "$freonowner"
fi

if [ -n "$xiwiactive" -a "${destdisp%"*"}" = "$aurawin" ]; then
Expand All @@ -287,16 +304,23 @@ if [ "${destdisp#:}" = "$destdisp" ]; then
fi
else
export DISPLAY="$destdisp"
if xprop -root 'CROUTON_XMETHOD' 2>/dev/null | grep -q '= "xiwi"$'; then
if [ -z "$noaurax" -a "$tty" != 'tty1' ]; then
xmethod="`xprop -root 'CROUTON_XMETHOD' 2>/dev/null \
| sed -n 's/^.*\"\(.*\)\"/\1/p'`"
if [ "${xmethod%%-*}" = 'xiwi' ]; then
if [ -z "$freonowner" -a "$tty" != 'tty1' ]; then
sudo -n chvt 1
sleep .1
elif [ "${freonowner:-0}" != 0 ]; then
kill -USR1 "$freonowner"
fi
if [ -z "$freonowner" ]; then
host-x11 croutonwmtools raise "$aurawin"
fi
STATUS="`echo -n "X${destdisp}" | websocketcommand`"
STATUS="`echo -n "X${destdisp} ${xmethod#*-}" | websocketcommand`"
if [ "$STATUS" != 'XOK' ]; then
error 1 "${STATUS#?}"
fi
else
elif [ -z "$freonowner" ]; then
dest="`xprop -root 'XFree86_VT' 2>/dev/null`"
dest="${dest##* }"
if [ "${dest#[1-9]}" = "$dest" ]; then
Expand All @@ -307,6 +331,15 @@ else
# display will be stuck on the old vt.
sudo -n chvt 2
sudo -n chvt "$dest"
else
dest="/tmp/.X${destdisp#:}-lock"
if [ -f "$dest" ]; then
# Trigger the target before releasing the current owner
kill -USR1 `cat /tmp/.X${destdisp#:}-lock`
fi
if [ "${freonowner:-0}" != 0 ]; then
kill -USR1 "$freonowner"
fi
fi
fi

Expand Down
Loading