pax_global_header00006660000000000000000000000064145551225170014521gustar00rootroot0000000000000052 comment=6acdde9e890685bd5a5d6fbd4446d9e8b3e6c698 lomiri-schemas-0.1.4/000077500000000000000000000000001455512251700144375ustar00rootroot00000000000000lomiri-schemas-0.1.4/AUTHORS000066400000000000000000000002111455512251700155010ustar00rootroot00000000000000Alfred Neumayer Dalton Durst Guido Berhoerster Lionel Duboeuf Marius Gripsgard Mike Gabriel Muhammad Ratchanan Srirattanamet Robert Tari lomiri-schemas-0.1.4/CMakeLists.txt000066400000000000000000000005151455512251700172000ustar00rootroot00000000000000project(lomiri-schemas) cmake_minimum_required(VERSION 3.4.0) set(PACKAGE ${CMAKE_PROJECT_NAME}) set(PROJECT_VERSION 0.1.4) if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) SET(CMAKE_INSTALL_PREFIX "/usr" CACHE PATH "..." FORCE) endif(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT) include(GNUInstallDirs) add_subdirectory(data) lomiri-schemas-0.1.4/COPYING000066400000000000000000000636421455512251700155050ustar00rootroot00000000000000 GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. [This is the first released version of the Lesser GPL. It also counts as the successor of the GNU Library Public License, version 2, hence the version number 2.1.] Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public Licenses are intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This license, the Lesser General Public License, applies to some specially designated software packages--typically libraries--of the Free Software Foundation and other authors who decide to use it. You can use it too, but we suggest you first think carefully about whether this license or the ordinary General Public License is the better strategy to use in any particular case, based on the explanations below. When we speak of free software, we are referring to freedom of use, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish); that you receive source code or can get it if you want it; that you can change the software and use pieces of it in new free programs; and that you are informed that you can do these things. To protect your rights, we need to make restrictions that forbid distributors to deny you these rights or to ask you to surrender these rights. These restrictions translate to certain responsibilities for you if you distribute copies of the library or if you modify it. For example, if you distribute copies of the library, whether gratis or for a fee, you must give the recipients all the rights that we gave you. You must make sure that they, too, receive or can get the source code. If you link other code with the library, you must provide complete object files to the recipients, so that they can relink them with the library after making changes to the library and recompiling it. And you must show them these terms so they know their rights. We protect your rights with a two-step method: (1) we copyright the library, and (2) we offer you this license, which gives you legal permission to copy, distribute and/or modify the library. To protect each distributor, we want to make it very clear that there is no warranty for the free library. Also, if the library is modified by someone else and passed on, the recipients should know that what they have is not the original version, so that the original author's reputation will not be affected by problems that might be introduced by others. Finally, software patents pose a constant threat to the existence of any free program. We wish to make sure that a company cannot effectively restrict the users of a free program by obtaining a restrictive license from a patent holder. Therefore, we insist that any patent license obtained for a version of the library must be consistent with the full freedom of use specified in this license. Most GNU software, including some libraries, is covered by the ordinary GNU General Public License. This license, the GNU Lesser General Public License, applies to certain designated libraries, and is quite different from the ordinary General Public License. We use this license for certain libraries in order to permit linking those libraries into non-free programs. When a program is linked with a library, whether statically or using a shared library, the combination of the two is legally speaking a combined work, a derivative of the original library. The ordinary General Public License therefore permits such linking only if the entire combination fits its criteria of freedom. The Lesser General Public License permits more lax criteria for linking other code with the library. We call this license the "Lesser" General Public License because it does Less to protect the user's freedom than the ordinary General Public License. It also provides other free software developers Less of an advantage over competing non-free programs. These disadvantages are the reason we use the ordinary General Public License for many libraries. However, the Lesser license provides advantages in certain special circumstances. For example, on rare occasions, there may be a special need to encourage the widest possible use of a certain library, so that it becomes a de-facto standard. To achieve this, non-free programs must be allowed to use the library. A more frequent case is that a free library does the same job as widely used non-free libraries. In this case, there is little to gain by limiting the free library to free software only, so we use the Lesser General Public License. In other cases, permission to use a particular library in non-free programs enables a greater number of people to use a large body of free software. For example, permission to use the GNU C Library in non-free programs enables many more people to use the whole GNU operating system, as well as its variant, the GNU/Linux operating system. Although the Lesser General Public License is Less protective of the users' freedom, it does ensure that the user of a program that is linked with the Library has the freedom and the wherewithal to run that program using a modified version of the Library. The precise terms and conditions for copying, distribution and modification follow. Pay close attention to the difference between a "work based on the library" and a "work that uses the library". The former contains code derived from the library, whereas the latter must be combined with the library in order to run. GNU LESSER GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any software library or other program which contains a notice placed by the copyright holder or other authorized party saying it may be distributed under the terms of this Lesser General Public License (also called "this License"). Each licensee is addressed as "you". A "library" means a collection of software functions and/or data prepared so as to be conveniently linked with application programs (which use some of those functions and data) to form executables. The "Library", below, refers to any such software library or work which has been distributed under these terms. A "work based on the Library" means either the Library or any derivative work under copyright law: that is to say, a work containing the Library or a portion of it, either verbatim or with modifications and/or translated straightforwardly into another language. (Hereinafter, translation is included without limitation in the term "modification".) "Source code" for a work means the preferred form of the work for making modifications to it. For a library, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the library. Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running a program using the Library is not restricted, and output from such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and distribute a copy of this License along with the Library. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Library or any portion of it, thus forming a work based on the Library, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) The modified work must itself be a software library. b) You must cause the files modified to carry prominent notices stating that you changed the files and the date of any change. c) You must cause the whole of the work to be licensed at no charge to all third parties under the terms of this License. d) If a facility in the modified Library refers to a function or a table of data to be supplied by an application program that uses the facility, other than as an argument passed when the facility is invoked, then you must make a good faith effort to ensure that, in the event an application does not supply such function or table, the facility still operates, and performs whatever part of its purpose remains meaningful. (For example, a function in a library to compute square roots has a purpose that is entirely well-defined independent of the application. Therefore, Subsection 2d requires that any application-supplied function or table used by this function must be optional: if the application does not supply it, the square root function must still compute square roots.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Library, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Library, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Library. In addition, mere aggregation of another work not based on the Library with the Library (or with a work based on the Library) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may opt to apply the terms of the ordinary GNU General Public License instead of this License to a given copy of the Library. To do this, you must alter all the notices that refer to this License, so that they refer to the ordinary GNU General Public License, version 2, instead of to this License. (If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.) Do not make any other change in these notices. Once this change is made in a given copy, it is irreversible for that copy, so the ordinary GNU General Public License applies to all subsequent copies and derivative works made from that copy. This option is useful when you wish to copy part of the code of the Library into a program that is not a library. 4. You may copy and distribute the Library (or a portion or derivative of it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange. If distribution of object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place satisfies the requirement to distribute the source code, even though third parties are not compelled to copy the source along with the object code. 5. A program that contains no derivative of any portion of the Library, but is designed to work with the Library by being compiled or linked with it, is called a "work that uses the Library". Such a work, in isolation, is not a derivative work of the Library, and therefore falls outside the scope of this License. However, linking a "work that uses the Library" with the Library creates an executable that is a derivative of the Library (because it contains portions of the Library), rather than a "work that uses the library". The executable is therefore covered by this License. Section 6 states terms for distribution of such executables. When a "work that uses the Library" uses material from a header file that is part of the Library, the object code for the work may be a derivative work of the Library even though the source code is not. Whether this is true is especially significant if the work can be linked without the Library, or if the work is itself a library. The threshold for this to be true is not precisely defined by law. If such an object file uses only numerical parameters, data structure layouts and accessors, and small macros and small inline functions (ten lines or less in length), then the use of the object file is unrestricted, regardless of whether it is legally a derivative work. (Executables containing this object code plus portions of the Library will still fall under Section 6.) Otherwise, if the work is a derivative of the Library, you may distribute the object code for the work under the terms of Section 6. Any executables containing that work also fall under Section 6, whether or not they are linked directly with the Library itself. 6. As an exception to the Sections above, you may also combine or link a "work that uses the Library" with the Library to produce a work containing portions of the Library, and distribute that work under terms of your choice, provided that the terms permit modification of the work for the customer's own use and reverse engineering for debugging such modifications. You must give prominent notice with each copy of the work that the Library is used in it and that the Library and its use are covered by this License. You must supply a copy of this License. If the work during execution displays copyright notices, you must include the copyright notice for the Library among them, as well as a reference directing the user to the copy of this License. Also, you must do one of these things: a) Accompany the work with the complete corresponding machine-readable source code for the Library including whatever changes were used in the work (which must be distributed under Sections 1 and 2 above); and, if the work is an executable linked with the Library, with the complete machine-readable "work that uses the Library", as object code and/or source code, so that the user can modify the Library and then relink to produce a modified executable containing the modified Library. (It is understood that the user who changes the contents of definitions files in the Library will not necessarily be able to recompile the application to use the modified definitions.) b) Use a suitable shared library mechanism for linking with the Library. A suitable mechanism is one that (1) uses at run time a copy of the library already present on the user's computer system, rather than copying library functions into the executable, and (2) will operate properly with a modified version of the library, if the user installs one, as long as the modified version is interface-compatible with the version that the work was made with. c) Accompany the work with a written offer, valid for at least three years, to give the same user the materials specified in Subsection 6a, above, for a charge no more than the cost of performing this distribution. d) If distribution of the work is made by offering access to copy from a designated place, offer equivalent access to copy the above specified materials from the same place. e) Verify that the user has already received a copy of these materials or that you have already sent this user a copy. For an executable, the required form of the "work that uses the Library" must include any data and utility programs needed for reproducing the executable from it. However, as a special exception, the materials to be distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. It may happen that this requirement contradicts the license restrictions of other proprietary libraries that do not normally accompany the operating system. Such a contradiction means you cannot use both them and the Library together in an executable that you distribute. 7. You may place library facilities that are a work based on the Library side-by-side in a single library together with other library facilities not covered by this License, and distribute such a combined library, provided that the separate distribution of the work based on the Library and of the other library facilities is otherwise permitted, and provided that you do these two things: a) Accompany the combined library with a copy of the same work based on the Library, uncombined with any other library facilities. This must be distributed under the terms of the Sections above. b) Give prominent notice with the combined library of the fact that part of it is a work based on the Library, and explaining where to find the accompanying uncombined form of the same work. 8. You may not copy, modify, sublicense, link with, or distribute the Library except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense, link with, or distribute the Library is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 9. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Library or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Library (or any work based on the Library), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Library or works based on it. 10. Each time you redistribute the Library (or any work based on the Library), the recipient automatically receives a license from the original licensor to copy, distribute, link with or modify the Library subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties with this License. 11. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Library at all. For example, if a patent license would not permit royalty-free redistribution of the Library by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Library. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply, and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 12. If the distribution and/or use of the Library is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Library under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 13. The Free Software Foundation may publish revised and/or new versions of the Lesser General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Library specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Library does not specify a license version number, you may choose any version ever published by the Free Software Foundation. 14. If you wish to incorporate parts of the Library into other free programs whose distribution conditions are incompatible with these, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Libraries If you develop a new library, and you want it to be of the greatest possible use to the public, we recommend making it free software that everyone can redistribute and change. You can do so by permitting redistribution under these terms (or, alternatively, under the terms of the ordinary General Public License). To apply these terms, attach the following notices to the library. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the library, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the library `Frob' (a library for tweaking knobs) written by James Random Hacker. , 1 April 1990 Ty Coon, President of Vice That's all there is to it! lomiri-schemas-0.1.4/ChangeLog000066400000000000000000000110711455512251700162110ustar00rootroot000000000000002024-01-27 Mike Gabriel * Release 0.1.4 (HEAD -> main, tag: 0.1.4) 2023-02-03 Mike Gabriel * data/schemas/com.lomiri.touch.system.gschema.xml.in: Support enabling/disabling the flashlight-as-a-torch via gsettings. (1b2fde9) 2024-01-05 Ratchanan Srirattanamet * Merge branch 'main' into 'main' (b94bbb5) 2024-01-05 Muhammad * schemas: rename charging information gsettin. show-charging-information -> show-charging-information-while-locked (b88d951) 2023-12-31 Muhammad * schemas: introduce new schema for configuring charging information (0ca6b0e) 2023-12-14 Ratchanan Srirattanamet * Merge branch 'ubports/focal_-_notif_privacymode' into 'main' (92055eb) 2023-08-09 Lionel Duboeuf * Add new property to disable content notification while locked (0041bc5) 2023-12-11 Marius Gripsgard * Merge branch 'personal/peat-psuwit/dt2w-bumpversion' into 'main' (7571e01) 2023-12-05 Ratchanan Srirattanamet * debian/changelog: bump version to allow versioned depends (6f998f8) * Merge branch 'ubports/focal_-_dt2w_persist' into 'main' (a75a4dc) 2023-12-01 Lionel Duboeuf * add gsetting for double tap to wake (586c756) 2023-02-15 Mike Gabriel * Release 0.1.3 (fed68d6) (tag: 0.1.3) * Merge branch 'personal/lduboeuf/focal_-_pincode_increase_length' into 'main' (8f42732) 2023-02-14 Lionel Duboeuf * store pincode length For UI/UX backward compatibility, we need to store the length of the pinCode so that we can have a placeholder and auto-login feature possible (adf5dc7) 2023-02-05 Mike Gabriel * README.md: Add note that the license is LGPL-2.1+ (not just LGPL-2.1). (fe3ea2b) * Release 0.1.2 (18b3a20) (tag: 0.1.2) * README.md: Rephrase slightly to let it sound less clonky. (77a9f6f) * README.md: Don't contain RT's email address. (e8a8f03) * README.md, COPYING: Provide proper license and copyright attributions. (e82297e) * README.md: Drop all todos, they are done by done. (1dc5bc5) 2022-12-30 Mike Gabriel * Merge branch 'main_-_pincodeManager' into 'main' (7a1fd2e) 2022-11-09 Lionel Duboeuf * add AccountsService "PinCodePromptManager" property (10e5ade) 2022-12-14 Marius Gripsgard * Merge branch 'personal/peat-psuwit/session-migration' into 'main' (f17fd78) 2022-12-14 Ratchanan Srirattanamet * debian/*: ship session-migration scripts (9690796) Fixes: https://gitlab.com/ubports/development/core/lomiri-schemas/-/issues/1 2022-12-04 Mike Gabriel * Merge branch 'pr/add-lockscreen-shortcut' into 'main' (1790ee3) 2022-03-04 Robert Tari * data/schemas/com.lomiri.Shell.gschema.xml.in: Add lockscreen shortcut key (0dcbb95) 2022-11-27 Marius Gripsgard * Merge branch 'personal/fredldotme/gsettingsblur' into 'main' (f295d74) 2022-11-27 Alfred Neumayer * schemas: Shell schema setting for blurred drawer & indicator panels (0e6d955) 2022-11-10 Ratchanan Srirattanamet * Merge branch 'app-url-fixes' into 'main' (8475d5b) 2022-11-09 Guido Berhoerster * Fix renamed app IDs of core apps (eee373d) 2022-02-18 Mike Gabriel * Merge branch 'pr/fix-symlink-path' into 'main' (60e0cdb) 2022-02-18 Robert Tari * data/CMakeLists.txt: Fix symlink path (6a6d079) 2022-02-16 Mike Gabriel * Release 0.1.1 (df3aa5f) (tag: 0.1.1) 2022-02-10 Ratchanan Srirattanamet * Merge branch 'pr/add-pkg-config-file' into 'main' (96bfaa1) 2022-01-27 Robert Tari * Add a pkg-config file (193ac6e) 2022-01-18 Dalton Durst * Merge branch 'personal/peat-psuwit/fix-as-inf-links' into 'main' (4a27c8d) 2022-01-17 Ratchanan Srirattanamet * data/CMakeLists: fix the creation of AS interface links (0a4a672) 2021-11-18 Dalton Durst * Merge branch 'personal/peat-psuwit/remove-com-lomiri-shell' into 'main' (866474c) (tag: 0.1.0) 2021-11-19 Ratchanan Srirattanamet * accountsservice: remove com.lomiri.shell.AccountsService (0e59ae8) 2021-11-18 Ratchanan Srirattanamet * Merge branch 'mr/add-ubuntu-schemas' into 'main' (dc79f96) 2021-11-04 Robert Tari * Add schema files used by Lomiri + move schemas to separate folders (feed0e4) 2021-11-03 Mike Gabriel * debian/control: Add B-D: libglib2.0-dev. (c3aac5f) * initial commit for new src:pkg 'lomiri-schemas' (4c27df8) lomiri-schemas-0.1.4/README.md000066400000000000000000000030671455512251700157240ustar00rootroot00000000000000# Lomiri Schemas ## List of Schema Files Contained in this Project * com.lomiri.Shell ## Why a separate package for schema files? The Lomiri schema files (Gsettings and AccountsSerivce schemata) are required not only by Lomiri itself, but also by Ayatana Indicators components. Bootstrapping Ayatana Indicators to a new distribution becomes quite painful, if the full scope of the indicators (i.e. Lomiri support) only becomes available once all Lomiri components have been packaged for a distribution. Also for CI builds of Ayatana Indicators and testing the Lomiri code, it is essential to have the Lomiri related schema files easily accessible (via the distribution or a small Git repository that gets build in build env preparation phase). To avoid the first and to provide support for the latter, the UBports team agreed on splitting off the schema files (from src:pkg lomiri) into an individual src:pkg / code project: lomiri-schemas. (Actually, pretty similar to how the desktop and phablet teams at Canonical Ltd. shipped schemas in the separate gsettings-ubuntu-schemas package. (We finally understood now, why that was done). ## License and Copyright For the license that applies to lomiri-schemas please see the COPYING file shipped in the base folder of this project. At your option, also a newer version of the license provided in COPYING may be applied. Furthermore, the lomiri-schemas component is attributed by the following copyright holders: Copyright (C) 2021-2023 UBports Foundation Copyright (C) 2021 Robert Tari Copyright (C) 2010-2013 Canonical Ltd. lomiri-schemas-0.1.4/data/000077500000000000000000000000001455512251700153505ustar00rootroot00000000000000lomiri-schemas-0.1.4/data/CMakeLists.txt000066400000000000000000000027431455512251700201160ustar00rootroot00000000000000add_subdirectory(schemas) # lomiri-schemas.pc configure_file("${CMAKE_CURRENT_SOURCE_DIR}/lomiri-schemas.pc.in" "${CMAKE_CURRENT_BINARY_DIR}/lomiri-schemas.pc" @ONLY) install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lomiri-schemas.pc" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/pkgconfig/") # accountsservice/*.xml file(GLOB_RECURSE XML_FILES "${CMAKE_CURRENT_SOURCE_DIR}/accountsservice/*.xml") install(DIRECTORY DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/accountsservice/interfaces") foreach(XML_FILE ${XML_FILES}) get_filename_component(XML_FILE ${XML_FILE} NAME) install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/accountsservice/${XML_FILE}" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/dbus-1/interfaces") install(CODE "message(STATUS \"Symlinking: \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/accountsservice/interfaces/${XML_FILE}\")") install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../../dbus-1/interfaces/${XML_FILE} \$ENV{DESTDIR}${CMAKE_INSTALL_FULL_DATADIR}/accountsservice/interfaces/${XML_FILE})") endforeach() # accountsservice/com.lomiri.AccountsService.policy install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/accountsservice/com.lomiri.AccountsService.policy" DESTINATION "${CMAKE_INSTALL_FULL_DATADIR}/polkit-1/actions") # accountsservice/50-com.lomiri.AccountsService.pkla install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/accountsservice/50-com.lomiri.AccountsService.pkla" DESTINATION "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/lib/polkit-1/localauthority/10-vendor.d") lomiri-schemas-0.1.4/data/accountsservice/000077500000000000000000000000001455512251700205505ustar00rootroot00000000000000lomiri-schemas-0.1.4/data/accountsservice/50-com.lomiri.AccountsService.pkla000066400000000000000000000004731455512251700270160ustar00rootroot00000000000000[Allow greeter to set fields] Identity=unix-user:lightdm Action=com.lomiri.AccountsService.GreeterChangeAny ResultAny=no ResultInactive=yes ResultActive=yes [Allow greeter to read fields] Identity=unix-user:lightdm Action=com.lomiri.AccountsService.GreeterReadAny ResultAny=yes ResultInactive=yes ResultActive=yes lomiri-schemas-0.1.4/data/accountsservice/com.lomiri.AccountsService.Input.xml000066400000000000000000000051711455512251700275430ustar00rootroot00000000000000 lomiri-schemas-0.1.4/data/accountsservice/com.lomiri.AccountsService.SecurityPrivacy.xml000066400000000000000000000031431455512251700316060ustar00rootroot00000000000000 lomiri-schemas-0.1.4/data/accountsservice/com.lomiri.AccountsService.Sound.xml000066400000000000000000000020701455512251700275270ustar00rootroot00000000000000 lomiri-schemas-0.1.4/data/accountsservice/com.lomiri.AccountsService.policy000066400000000000000000000016021455512251700271370ustar00rootroot00000000000000 no no auth_admin_keep no no no lomiri-schemas-0.1.4/data/accountsservice/com.lomiri.touch.AccountsService.Phone.xml000066400000000000000000000020651455512251700306350ustar00rootroot00000000000000 lomiri-schemas-0.1.4/data/accountsservice/com.lomiri.touch.AccountsService.SecurityPrivacy.xml000066400000000000000000000010001455512251700327150ustar00rootroot00000000000000 lomiri-schemas-0.1.4/data/accountsservice/com.lomiri.touch.AccountsService.Sound.xml000066400000000000000000000041231455512251700306510ustar00rootroot00000000000000 lomiri-schemas-0.1.4/data/lomiri-schemas.pc.in000066400000000000000000000001761455512251700212210ustar00rootroot00000000000000prefix=@CMAKE_INSTALL_PREFIX@ Name: lomiri-schemas Description: Lomiri schemas Version: @PROJECT_VERSION@ Requires: glib-2.0 lomiri-schemas-0.1.4/data/schemas/000077500000000000000000000000001455512251700167735ustar00rootroot00000000000000lomiri-schemas-0.1.4/data/schemas/CMakeLists.txt000066400000000000000000000006531455512251700215370ustar00rootroot00000000000000# *.xml find_package(GSettings) find_package(Intltool REQUIRED) set (ENV{LC_ALL} "C") file(GLOB_RECURSE XML_IN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.xml.in") foreach(XML_IN_FILE ${XML_IN_FILES}) get_filename_component(XML_FILE ${XML_IN_FILE} NAME_WLE) intltool_merge_translations("${XML_IN_FILE}" "${CMAKE_CURRENT_BINARY_DIR}/${XML_FILE}" ALL UTF8 STYLE "xml" NO_TRANSLATIONS) add_schema(${XML_FILE}) endforeach() lomiri-schemas-0.1.4/data/schemas/com.lomiri.Shell.gschema.xml.in000066400000000000000000000436101455512251700246520ustar00rootroot00000000000000 "Automatic" The usage mode. The usage mode chosen will affect the Window Management behaviour. 50 Sensitivity of screen edge barriers for the mouse pointer. Some UI actions like revealing the launcher or the applications spread are triggered by pushing the mouse pointer against a screen edge. This key defines how much you have to push in order to trigger the associated action. 2 Minimum push needed to overcome edge barrier How much you have to push (in grid units)the mouse against an edge barrier when sensibility is 100. 120 Maximum push needed to overcome edge barrier How much you have to push (in grid units) the mouse against an edge barrier when sensibility is 1. 2 The width of the edge drag areas How big (in grid units) the edge-drag sensitive area should be. false Autohide the launcher This will only be applied in windowed mode. In staged mode, the launcher will always hide. 8 Width of the launcher in grid units. Changes the width of the launcher in all usage modes. true Enable or disable the indicator pull down menus Toggle the availability of the indicator pull down menus 'appid://openstore.openstore-team/openstore/current-user-version' The uri to the app store This will be used whenever the user triggers an action to open the app store. false Force showing/hiding the OSK Toggle the visibility of the On Screen Keyboard unconditionally false Whether the OSK switch should be visible Toggle the visibility of the OSK switch false Enable or disable workspaces Toggle the availability of workspaces false Force enable workspaces Forces workspaces availability even when not in windowed mode true Enable or disable blur effects Toggle blur effects in the drawer and indicator panels "Automatic" The form factor Lomiri should target. The form factor chosen will affect the size and appearance of the Dash, Launcher and also the Window Management behaviour. "Expanded" Whether the home screen should be expanded. Whether the home screen should be expanded. "Ubuntu" The current desktop name. The current desktop name. 0 Number of times a normal window has been minimized. This is used to adjust the animation speed by making it progressively faster the more it is used. 300 The duration for the minimize animation when it is at its fastest setting. This is the duration that the minimize animation will have when it has been used more than an number of times equal minimize-speed-threshold. 800 The duration for the minimize animation when it is at its slowest setting. This is the duration that the minimize animation will have when it has never been used. 100 The number of minimizations required to reach maximum speed. The speed of the minimize animation will progressively get faster as minimize-count approaches this value. true Enable/Disable dash result double-click activation. This is used to enable/disable double-click result activation in the dash. Double-click to activate, single click preview false Enable/Disable the integrated menus in Lomiri. When this is enabled, the application menus will be shown on the window decoration, otherwise they will be always shown on the lomiri top panel 180 Delay (in ms) before showing the menus when pressing Alt This allows tune the delay before presenting lomiri menus (in non always-show-menus mode). false Toggle the menu visibility based on mouse hovering. When this is enabled, the application menus will be always shown (on the window decoration or in the lomiri panel, depending whether integrated menus are enabled), otherwise they will be shown only when the mouse cursor is over the relative mouse area. [ 'XF86KbdBrightnessUp', 'XF86KbdBrightnessDown', 'XF86MonBrightnessUp', 'XF86MonBrightnessDown', 'XF86AudioRaiseVolume', 'XF86AudioLowerVolume' ] List of keycodes that should be processed even if auto-repated. These keycodes are processed even if they are auto-repeated. false Enable/Disable PAM account checking Whether PAM should check the result of account modules when authenticating. Only do this if you have account configured properly on your system. false Enable/Disable Low Graphics Mode Whether Lomiri runs in Low Graphics Mode. 0 When the greeter was last locked. If too many unsuccessful login attempts have been made in a row, the greeter locks you out for a while. This unix timestamp indicates when you were locked out, so lomiri knows when to let you back in. 1.0 Font scaling for lomiri and applications. This value defines the global font scaling used by both lomiri and applications. It will match the current system font scaling. 1.0 Mouse cursor scaling. This value defines the global mouse cursor scaling used by both lomiri and applications. Changing this value allows to use a custom scaling for the mouse cursor. '' The name of the monitor that controls the global app scaling factor. This value defines the monitor that lomiri will use (if found) as reference for scaling all the applications. true Use the maximum per-monitor scale-factor as application scale factor if no target monitor is found. When this is enabled, the applications scale factor will match the scale factor of the monitor with the greater value, in case the monitor defined in 'app-scale-factor-monitor' is not provided or available. [ 'application://ubiquity.desktop', 'application://org.gnome.Nautilus.desktop', 'application://firefox.desktop', 'application://libreoffice-writer.desktop', 'application://libreoffice-calc.desktop', 'application://libreoffice-impress.desktop', 'application://org.gnome.Software.desktop', 'application://ubuntu-amazon-default.desktop', 'application://lomiri-control-center.desktop', 'lomiri://running-apps', 'lomiri://expo-icon', 'lomiri://devices' ] List of items that should be shown by default in the launcher These items can be: application://desktop-id.desktop, device://uiid and lomiri://special-id (including: lomiri://running-apps (icons of running applications) lomiri://devices (icons of attached devices), lomiri://expo-icon (icon of the workspace switcher) and lomiri://desktop-icon (the show-desktop icon)); the order of this list determines the launcher item's position. [ 'application:///dialer-app.desktop', 'application:///messaging-app.desktop', 'application:///address-book-app.desktop', 'application:///ubuntu-system-settings.desktop', 'appid://openstore.openstore-team/openstore/current-user-version', 'appid://camera.ubports/camera/current-user-version', 'appid://gallery.ubports/gallery/current-user-version', 'application:///morph-browser.desktop' ] List of items that should be shown by default in the launcher These items can be: application:///desktop-id.desktop or appid://package/app/current-user-version. '' Version of last migration done This is a detection key for the favorite migration script to know whether the needed migration is done or not. "Left" The position of launcher. The position of launcher. [] List of device uuid blacklist from the launcher. These devices are not shown in the launcher by default. [ 'home.scope', 'applications.scope', 'files.scope', 'video.scope', 'music.scope', 'photos.scope', 'social.scope' ] List of scope ids specifying which scopes should be created and the order to display them in. The scopes listed in the scope bar will be ordered according to this list. [ 'scope://clickscope', 'scope://musicaggregator', 'scope://videoaggregator' ] List of scope queries specifying what should be displayed in the dash. List of favorite scopes displayed in the dash. 175 Milliseconds to wait before considering a mouse pressure a grab The number of ms to wait before starting the window movement (and then showing the proper mouse cursor, and grabbing the window) 15 Number of pixels to ignore on mouse pressure This value define how many pixels the user can move the mouse when holding the mouse button, before we consider his action a movement (to grab the window). 0 Milliseconds to wait before activating a menu after mouse release The number of ms to wait after a mouse button release event before considering it a click. When this value is greater than 0, then it's possible to maximize a window by double-clicking on its menus if the second click happens before the specified value of ms is elapsed true Whether to pop-up a menu when clicking over unfocused windows entries By disabling this setting you can make lomiri to only focus a window when clicking over unfocused menu entries true Multi-touch gesture to reveal the launcher. When this is enabled, a 4 finger swipe from left to right will reveal launcher, provided that the launcher is set to auto-hide. true Multi-touch gesture to open the dash. When this is enabled, a 4 finger tap will open the dash. true Multi-touch gestures to manage the windows. When this is enabled, 3 finger gestures such as drag, and pinch, will help manage the windows. '<Control><Alt>l' Lock screen Binding to lock the screen. lomiri-schemas-0.1.4/data/schemas/com.lomiri.notifications.settings.gschema.xml.in000066400000000000000000000042371455512251700303150ustar00rootroot00000000000000 [] Applications List of all applications registered for using notifications. true Should Vibrate When in Silent Mode Defines if applications can use vibrations to notify when system is in silent mode. true Notifications Enabled Defines if application can use any supported notification type. This option has precedence over others options. true Sounds Notifications Enabled Defines if application can use sounds to notify users. true Vibrations Notifications Enabled Defines if application can use vibrations to notify users. true Bubbles Notifications Enabled Defines if application can use Notification Bubbles to notify users. true List Notifications Enabled Defines if application can show messages in the Notification List. lomiri-schemas-0.1.4/data/schemas/com.lomiri.phone.gschema.xml.in000066400000000000000000000017641455512251700247200ustar00rootroot00000000000000 Name per modem path {} Mapping of modem paths to SIM names. "ask" Default sim card to use for calls, defined by a modem path or "ask". "ask" Default sim card to use for messages, defined by a modem path or "ask". false Enable sending group chat messages over MMS. lomiri-schemas-0.1.4/data/schemas/com.lomiri.sound.gschema.xml.in000066400000000000000000000004711455512251700247310ustar00rootroot00000000000000 false Whether the volume slider allows setting the volume above 100% lomiri-schemas-0.1.4/data/schemas/com.lomiri.touch.sound.gschema.xml.in000066400000000000000000000017371455512251700260600ustar00rootroot00000000000000 false Silent mode Whether silent mode is active or not. "/usr/share/sounds/lomiri/ringtones/Ubuntu.ogg" Ringtone sound for the phone application. This sound file is played, on incoming calls, by the phone application. "/usr/share/sounds/lomiri/notifications/Xylo.ogg" Incoming message sound for the phone application. This sound file is played, on incoming messages, by the phone application. lomiri-schemas-0.1.4/data/schemas/com.lomiri.touch.system.gschema.xml.in000066400000000000000000000061131455512251700262450ustar00rootroot00000000000000 false Lock rotation Deprecated. "none" Orientation lock Locks orientation to a specific value. 80 Brightness level The brightness setting specified by the user. true Brightness hardware default flag. A first-session flag denoting that 'brightness' needs to be initialized to that hardware's default level. false Automatic brightness Whether the device should adjust brightness automatically based on ambient light levels. false Flashlight switch Enable/disable the flashlight so it can be used as a torch. 60 Timeout in seconds for turning off the screen if there is no user activity. A value of 0 disables it. 45 Timeout in seconds for dimming the screen if there is no user activity. A value of 0 disables auto-dimming. false Double tap screen to wake device Controls wherether douple-tap-to-wake is enabled or not. true Show charging information on the lock screen Controls whether time to fully charge is shown or not. Fingerprint names {} Mapping of unique fingerprint ids to names set by the user. lomiri-schemas-0.1.4/debian/000077500000000000000000000000001455512251700156615ustar00rootroot00000000000000lomiri-schemas-0.1.4/debian/Jenkinsfile000066400000000000000000000001011455512251700200350ustar00rootroot00000000000000@Library('ubports-build-tools') _ buildAndProvideDebianPackage() lomiri-schemas-0.1.4/debian/changelog000066400000000000000000000022601455512251700175330ustar00rootroot00000000000000lomiri-schemas (0.1.4) unstable; urgency=medium * Upstream-provided Debian package for lomiri-schemas. See upstream ChangeLog for recent changes. -- UBports developers Sat, 27 Jan 2024 07:39:47 +0100 lomiri-schemas (0.1.3) unstable; urgency=medium * Upstream-provided Debian package for lomiri-schemas. See upstream ChangeLog for recent changes. -- UBports developers Wed, 15 Feb 2023 16:56:17 +0100 lomiri-schemas (0.1.2) unstable; urgency=medium * Upstream-provided Debian package for lomiri-schemas. See upstream ChangeLog for recent changes. -- UBports developers Sun, 05 Feb 2023 15:55:22 +0100 lomiri-schemas (0.1.1) unstable; urgency=medium [ UBports developers ] * Upstream-provided Debian package for lomiri-schemas. See upstream ChangeLog for recent changes. -- UBports developers Wed, 16 Feb 2022 11:55:45 +0100 lomiri-schemas (0.1.0) unstable; urgency=medium [ Mike Gabriel ] * Provide lomiri-schemas as separate src:pkg. See README.md for reasoning. -- UBports developers Wed, 03 Nov 2021 17:22:11 +0200 lomiri-schemas-0.1.4/debian/compat000066400000000000000000000000021455512251700170570ustar00rootroot000000000000009 lomiri-schemas-0.1.4/debian/control000066400000000000000000000014561455512251700172720ustar00rootroot00000000000000Source: lomiri-schemas Section: misc Priority: optional Maintainer: UBports developers Build-Depends: debhelper (>= 9), dh-migrations, cmake, cmake-extras, intltool (>= 0.40.0), libglib2.0-dev Standards-Version: 4.6.0 Rules-Requires-Root: no Homepage: https://gitlab.com/ubports/core/lomiri-schemas Vcs-git: https://gitlab.com/ubports/core/lomiri-schemas.git Vcs-Browser: https://gitlab.com/ubports/core/lomiri-schemas Package: lomiri-schemas Architecture: all Multi-Arch: foreign Depends: accountsservice-ubuntu-schemas, ${misc:Depends}, Description: Lomiri schemas The Lomiri shell is the primary user interface for Lomiri based mobile devices. . This package contains the configuration schemas used by Lomiri. lomiri-schemas-0.1.4/debian/copyright000066400000000000000000000025631455512251700176220ustar00rootroot00000000000000Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: lomiri-schemas Upstream-Contact: UBports developers Source: https://gitlab.com/ubports/core/lomiri-schemas Files: data/*.xml Copyright: 2010-2013, Canonical Ltd. 2021, Robert Tari License: LGPL-2.1+ Files: README.md CMakeLists.txt data/CMakeLists.txt Copyright: 2021, Mike Gabriel License: LGPL-2.1+ Files: debian/* Copyright: 2021, Mike Gabriel License: LGPL-2.1+ License: LGPL-2.1+ This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. . This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . . On Debian systems, the complete text of the GNU Lesser General Public License can be found in `/usr/share/common-licenses/LGPL-2.1'. lomiri-schemas-0.1.4/debian/lomiri-schemas.migrations000066400000000000000000000001601455512251700226700ustar00rootroot00000000000000debian/session-migration/lomiri-schemas-accountsservice.py debian/session-migration/lomiri-schemas-gsettings.sh lomiri-schemas-0.1.4/debian/rules000077500000000000000000000002031455512251700167340ustar00rootroot00000000000000#!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with migrations lomiri-schemas-0.1.4/debian/session-migration/000077500000000000000000000000001455512251700213335ustar00rootroot00000000000000lomiri-schemas-0.1.4/debian/session-migration/lomiri-schemas-accountsservice.py000077500000000000000000000054051455512251700300260ustar00rootroot00000000000000#!/usr/bin/python3 # -*- coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*- # # Copyright (C) 2016 Canonical Ltd. # Copyright (C) 2021-2022 UBports Foundation # # This program is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free Software # Foundation; version 3. # # This program is distributed in the hope that it will be useful, but WITHOUTa # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more # details. # # You should have received a copy of the GNU General Public License along with # this program. If not, see . # # Authored by: Ratchanan Srirattanamet import dbus import os import sys from typing import List, Tuple from pathlib import Path AS_SCHEMAS: List[Tuple[str, str]] = [ ('com.ubuntu.AccountsService.Input', 'com.lomiri.AccountsService.Input'), ('com.ubuntu.AccountsService.SecurityPrivacy', 'com.lomiri.AccountsService.SecurityPrivacy'), ('com.ubuntu.AccountsService.Sound', 'com.lomiri.AccountsService.Sound'), ('com.ubuntu.touch.AccountsService.Phone', 'com.lomiri.touch.AccountsService.Phone'), ('com.ubuntu.touch.AccountsService.SecurityPrivacy', 'com.lomiri.touch.AccountsService.SecurityPrivacy'), ('com.ubuntu.touch.AccountsService.Sound', 'com.lomiri.touch.AccountsService.Sound'), ] # session-migration says we should be idempotent. However, we cannot determine # that from AccountsService as it will happily provide us the default value in # the schema. So, we need an out-of-band method to determine if we have run this # or not. In this case, we simply use a marker file. marker_path = Path('~/.config/lomiri/lomiri-schemas-accountsservice-migration-has-run').expanduser() if marker_path.exists(): print(f'{marker_path} exists, which mean the migration has run. Exit now.') sys.exit(0) system_bus = dbus.SystemBus() manager_proxy = system_bus.get_object('org.freedesktop.Accounts', '/org/freedesktop/Accounts') object_path = manager_proxy.FindUserById( os.getuid(), dbus_interface='org.freedesktop.Accounts' ) user_proxy = system_bus.get_object('org.freedesktop.Accounts', object_path) user_properties_if = dbus.Interface(user_proxy, dbus.PROPERTIES_IFACE) for (src_schema, dst_schema) in AS_SCHEMAS: print(f'Migrating {src_schema} to {dst_schema}') src_props = user_properties_if.GetAll(src_schema) for (key, value) in src_props.items(): user_properties_if.Set(dst_schema, key, value) marker_path.parent.mkdir(mode=0o755, parents=True, exist_ok=True) marker_path.touch(mode=0o644) print('Migrated miscellaneous Lomiri AccountsService settings.') lomiri-schemas-0.1.4/debian/session-migration/lomiri-schemas-gsettings.sh000077500000000000000000000043611455512251700266170ustar00rootroot00000000000000#!/bin/bash -euf # Copyright (C) 2021-2022 UBports Foundation. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License version 3 as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this program. If not, see . # # Authored by: Ratchanan Srirattanamet set -o pipefail # /com/lomiri/shell is omitted since its migration script ships with Lomiri. # /com/lomiri/NotificationSettings is omitted since its migration script ships # with lomiri-push-service. DCONF_SOURCE_AND_TARGET_DIRS="\ /com/ubuntu/phone/ /com/lomiri/phone/ /com/ubuntu/sound/ /com/lomiri/sound/ /com/ubuntu/touch/sound/ /com/lomiri/touch/sound/ /com/ubuntu/touch/system/ /com/lomiri/touch/system/" while read -r DCONF_SOURCE_DIR DCONF_TARGET_DIR; do # session-migration says we should be idempotent. We simply check if the target # is not empty as to not overwrite things that is set manually. target_content=$(dconf dump "$DCONF_TARGET_DIR") if [ -n "$target_content" ]; then echo "${DCONF_TARGET_DIR} is not empty. Perhaps the migration has already" \ "happened, and/or the user has set additional settings." continue fi # Now, simply pipe the output of "dconf dump" to "dconf load". Won't wipe the # old data, in case the migration goes wrong. dconf dump "$DCONF_SOURCE_DIR" | dconf load "$DCONF_TARGET_DIR" done <<<"${DCONF_SOURCE_AND_TARGET_DIRS}" # Fixup hard-coded paths for call and message ringtones for key in incoming-call-sound incoming-message-sound; do value=$(gsettings get com.lomiri.touch.sound $key) if [[ "$value" =~ ^/usr/share/sounds/ubuntu ]]; then value=${value/"/usr/share/sounds/ubuntu"/"/usr/share/sounds/lomiri"} gsettings set com.lomiri.touch.sound $key "$value" fi done echo "Migrated settings for miscellaneous Lomiri schemas." lomiri-schemas-0.1.4/debian/source/000077500000000000000000000000001455512251700171615ustar00rootroot00000000000000lomiri-schemas-0.1.4/debian/source/format000066400000000000000000000000041455512251700203660ustar00rootroot000000000000001.0