├── .github ├── FUNDING.yml ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── build-extension.yml │ ├── shellcheck.yml │ └── test-build-system.yml ├── .gitignore ├── LICENCE.txt ├── Makefile ├── README.md ├── docs ├── CHANGELOG.md ├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── icon.svg └── screenshot.png ├── extension ├── extension.js ├── metadata.json ├── po │ ├── cs.po │ ├── de.po │ ├── fa_IR.po │ ├── fi.po │ ├── it.po │ ├── ja.po │ ├── nl.po │ ├── pt_BR.po │ ├── ru.po │ └── sk.po ├── prefs.js └── schemas │ └── org.gnome.shell.extensions.PrivacyMenu.gschema.xml └── scripts ├── check-characters.sh ├── update-po.sh └── update-pot.sh /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: stuarthayhurst 2 | custom: "https://paypal.me/stuartahayhurst" 3 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Bug report 3 | about: Create a bug report to help improve the extension 4 | title: "[Bug] ..." 5 | labels: bug 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Describe the issue** 11 | A clear and concise description of what the bug is 12 | 13 | **To Reproduce** 14 | Steps to reproduce the behavior: 15 | 1. Go to '...' 16 | 2. Click on '....' 17 | 3. Scroll down to '....' 18 | 4. See the error 19 | 20 | **Expected behavior** 21 | A clear and concise description of what you expected to happen 22 | 23 | **Screenshots and logs** 24 | If applicable, add screenshots and logs to help explain your problem 25 | Help on obtaining a log can be found [here](https://github.com/stuarthayhurst/privacy-menu-extension#bug-reporting--debugging) 26 | 27 | **System information (please complete the following information):** 28 | - Distro: [e.g. Debian 11] 29 | - GNOME version: (Run `gnome-shell --version`) 30 | - Extension version (Run `gnome-extensions info PrivacyMenu@stuarthayhurst |grep Version`) 31 | 32 | **Additional context** 33 | Add any other context about the problem here 34 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: Feature request 3 | about: Suggest an idea to help improve the extension 4 | title: "[Feature request] ..." 5 | labels: enhancement 6 | assignees: '' 7 | 8 | --- 9 | 10 | **Is your feature request related to a problem?** 11 | Yes or no, and a clear and concise description of what the problem is, if yes 12 | 13 | **Describe the solution you'd like** 14 | A clear and concise description of what you want to happen 15 | 16 | **Describe alternatives you've considered** 17 | A clear and concise description of any alternative solutions or features you've considered 18 | 19 | **Can you work on it?** 20 | Are you able to solve the problem / create the solution yourself? If you are, that's great! Fork the repository and create a pull request, I'll get around to reviewing it shortly 21 | If you don't know how to do it yourself, any information on how it could be implemented would be appreciated 22 | 23 | **Additional context** 24 | Add any other context or screenshots about the feature request here 25 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- 1 | 4 | 5 | ## Pull request summary: 6 | - What does the pull request do? Why is it necessary? 7 | - Add screenshots of UI changes here 8 | 9 | ## Build system related changes: 10 | - Does the pull request require any new dependencies? 11 | - Have any new dependencies, quirks, options or makefile targets been documented? 12 | 13 | ## Related issues / pull requests: 14 | - If the pull request depends on another, mark the pull request as a draft and tag the dependency 15 | - Tag any issues affected by this pull request (e.g. add `Fixes #1` as the last line) 16 | -------------------------------------------------------------------------------- /.github/workflows/build-extension.yml: -------------------------------------------------------------------------------- 1 | # This workflow will build the extension and upload an artifact 2 | name: Build and upload extension 3 | 4 | on: 5 | push: 6 | branches: '**' 7 | pull_request: 8 | branches: '**' 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-24.04 13 | steps: 14 | - uses: actions/checkout@v4 15 | - name: Install build dependencies 16 | run: | 17 | sudo apt-get update 18 | sudo apt-get install --no-install-recommends make gettext gnome-shell 19 | 20 | - name: Build the extension bundle 21 | run: | 22 | make build 23 | 24 | - name: Run checks on extension 25 | run: | 26 | make check 27 | 28 | - uses: actions/upload-artifact@v4 29 | with: 30 | name: PrivacyMenu@stuarthayhurst.shell-extension.zip 31 | path: build/PrivacyMenu@stuarthayhurst.shell-extension.zip 32 | -------------------------------------------------------------------------------- /.github/workflows/shellcheck.yml: -------------------------------------------------------------------------------- 1 | name: Run shellcheck 2 | 3 | on: 4 | push: 5 | branches: '**' 6 | pull_request: 7 | branches: '**' 8 | 9 | jobs: 10 | shellcheck: 11 | runs-on: ubuntu-24.04 12 | steps: 13 | - uses: actions/checkout@v4 14 | - name: Run shellcheck 15 | run: | 16 | find $GITHUB_WORKSPACE -type f -and \( -name "*.sh" \) | xargs shellcheck 17 | -------------------------------------------------------------------------------- /.github/workflows/test-build-system.yml: -------------------------------------------------------------------------------- 1 | # This workflow will thoroughly test the build system 2 | name: Complete build system test 3 | 4 | on: 5 | push: 6 | branches: '**' 7 | pull_request: 8 | branches: '**' 9 | 10 | jobs: 11 | build: 12 | runs-on: ubuntu-24.04 13 | steps: 14 | - uses: actions/checkout@v4 15 | - name: Install build dependencies 16 | run: | 17 | sudo apt-get update 18 | sudo apt-get install --no-install-recommends git make optipng gettext gnome-shell 19 | 20 | - name: Check asset optimisation targets work 21 | run: | 22 | # Check all assets are space optimised 23 | make compress COMPRESSLEVEL="-o0" "-j$(nproc)" 24 | 25 | - name: Check translation generation works 26 | run: | 27 | make translations 28 | git restore extension/po/ 29 | 30 | - name: Test extension builds from current state 31 | run: | 32 | make build 33 | 34 | - name: Test extension is valid and able to be uploaded 35 | run: | 36 | make check 37 | 38 | - name: Check no extra files have been committed or missed 39 | run: | 40 | # Clean up files (shouldn't have to do anything) 41 | make clean 42 | # Fail if any files generated by last step that haven't been committed 43 | if [ ! -z "$(git status --porcelain)" ]; then exit 1; fi 44 | 45 | - name: Check release workflow is functional 46 | run: | 47 | make release COMPRESSLEVEL="-o0" "-j$(nproc)" 48 | 49 | - name: Test extension installs 50 | run: | 51 | make install 52 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | #Build files 2 | build/ 3 | PrivacyMenu@stuarthayhurst.shell-extension.zip 4 | extension/locale/ 5 | extension/schemas/gschemas.compiled 6 | locale/ 7 | schemas/gschemas.compiled 8 | 9 | #Backups 10 | *.po~ 11 | *.ui~ 12 | *.ui# 13 | -------------------------------------------------------------------------------- /LICENCE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- 1 | SHELL = bash 2 | UUID = PrivacyMenu@stuarthayhurst 3 | COMPRESSLEVEL ?= -o7 4 | 5 | BUILD_DIR ?= build 6 | PNG_FILES = $(wildcard ./docs/*.png) 7 | BUNDLE_PATH = "$(BUILD_DIR)/$(UUID).shell-extension.zip" 8 | 9 | .PHONY: build package check release translations compress install uninstall clean $(PNG_FILES) 10 | 11 | build: clean 12 | @mkdir -p $(BUILD_DIR) 13 | $(MAKE) package 14 | package: 15 | @mkdir -p $(BUILD_DIR) 16 | @echo "Packing files..." 17 | @cd "extension"; \ 18 | gnome-extensions pack --force \ 19 | --podir=po \ 20 | --extra-source=../LICENCE.txt \ 21 | --extra-source=../docs/CHANGELOG.md \ 22 | -o ../$(BUILD_DIR)/ 23 | check: 24 | @if [[ ! -f $(BUNDLE_PATH) ]]; then \ 25 | echo "WARNING: Extension zip couldn't be found"; exit 1; \ 26 | elif [[ "$$(stat -c %s $(BUNDLE_PATH))" -gt 4096000 ]]; then \ 27 | echo "WARNING: Extension zip must stay below 4096 KB"; exit 1; \ 28 | fi 29 | @./scripts/check-characters.sh 30 | release: 31 | @if [[ "$(VERSION)" != "" ]]; then \ 32 | sed -i "s| \"version\":.*| \"version\": $(VERSION)|g" extension/metadata.json; \ 33 | fi 34 | #Call other targets required to make a release 35 | $(MAKE) translations compress 36 | $(MAKE) build 37 | $(MAKE) check 38 | translations: 39 | @BUILD_DIR=$(BUILD_DIR) ./scripts/update-po.sh -a 40 | compress: 41 | $(MAKE) $(PNG_FILES) 42 | $(PNG_FILES): 43 | @echo "Compressing $@..." 44 | @optipng $(COMPRESSLEVEL) -quiet -strip all "$@" 45 | install: 46 | @if [[ ! -f $(BUNDLE_PATH) ]]; then \ 47 | $(MAKE) build; \ 48 | fi 49 | gnome-extensions install $(BUNDLE_PATH) --force 50 | uninstall: 51 | gnome-extensions uninstall "$(UUID)" 52 | clean: 53 | @rm -rfv $(BUILD_DIR) 54 | @rm -rfv extension/po/*.po~ 55 | @rm -rfv extension/ui/*/*.ui~ extension/ui/*/*.ui# 56 | @rm -rfv extension/locale extension/schemas/gschemas.compiled "$(UUID).shell-extension.zip" 57 | @rm -rfv locale schemas/gschemas.compiled 58 | @rm -rfv extension/*.ui~ extension/*.ui# extension/ui/*.ui~ extension/ui/*.ui# 59 | @rm -rfv po/*.po~ *.ui~ *.ui# ui/*.ui~ ui/*.ui# 60 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |

2 | privacy-settings-menu 3 |

4 | 5 | ## Privacy Quick Settings GNOME Extension 6 | [![Donate](https://img.shields.io/badge/Donate-PayPal-green.svg)](https://www.paypal.com/donate?hosted_button_id=G2REEPPNZK9GN) 7 | - Add privacy quick settings to the system menu for quick access to privacy settings in GNOME 8 | - Supports GNOME 45+ 9 | - Get the extension from [here](https://extensions.gnome.org/extension/4491/privacy-settings-menu/) 10 | - This project is licensed under GPL 3.0 11 | - Any donations are greatly appreciated :) 12 | 13 | ## Why are apps ignoring my settings? 14 | - Due to limitations in GNOME shell, only sandboxed (flatpak / snap) apps can be forced to respect privacy settings 15 | - As long as the settings changed by the extension match the settings inside GNOME Settings (privacy section), the extension is behaving correctly 16 | 17 | ## Older versions: 18 | - Support for older versions of GNOME can be found in branches 19 | - Find the name of the branch thgat supports the target version, and install from there 20 | - Alternatively, you can just use an older release or tag to install from 21 | 22 | ## Install the extension from releases: 23 | - Run `gnome-extensions install "PrivacyMenu@stuarthayhurst.shell-extension.zip" --force` 24 | - Alternatively: 25 | - Extract the zip to `~/.local/share/gnome-shell/extensions/PrivacyMenu@stuarthayhurst/` 26 | - Then run `glib-compile-schemas ~/.local/share/gnome-shell-extensions/PrivacyMenu@stuarthayhurst/schemas/` 27 | - Log out and back in to restart GNOME 28 | - Enable the extension: `gnome-extensions enable PrivacyMenu@stuarthayhurst` 29 | 30 | ## Install the extension from source: 31 | - Make sure the install dependencies are installed 32 | - `make build` 33 | - `make install` 34 | - Log out and back in to restart GNOME 35 | - Enable the extension: `gnome-extensions enable PrivacyMenu@stuarthayhurst` 36 | 37 | ## Build system usage: 38 | - ### Common targets: Regular build system targets to build, install and uninstall 39 | - `make build`: Creates extension zip 40 | - `make check`: Runs checks on built extension zip 41 | - `make install`: Installs the extension 42 | - `make uninstall`: Uninstalls the extension 43 | - ### Development targets: These targets are aimed at developers and translators 44 | - `make clean`: Cleans the extension repository, including built files and translations 45 | - `make translations`: Updates translations 46 | - `make compress`: Losslessly compresses any `.png`s in `docs/` 47 | - Allows passing `COMPRESSLEVEL="-o[X]"`, where `[X]` is an integer between 0-7 48 | - Supports `-j[X]`, where `[X]` is the number of threads to use 49 | - `make release`: Updates translations and icons, then creates and checks an extension zip 50 | - Calls `make translations compress build check` 51 | - Supports any variables / arguments supported by these targets 52 | - Also allows passing `VERSION="[XX]"`, where `[XX]` is the version to update `metadata.json` to 53 | - Supports `-j[X]`, where `[X]` is the number of threads to use 54 | - `make package`: Creates the extension zip from the project's current state (only useful for debugging) 55 | 56 | ## Install dependencies: 57 | - gettext 58 | - gnome-extensions 59 | 60 | ## Build dependencies: (Only required if running `make release`) 61 | - `All install dependencies` 62 | - sed (`make translations`) 63 | - optipng (`make compress`) 64 | 65 | ## Want to help? 66 | - Help with the project is always appreciated, refer to `docs/CONTRIBUTING.md` to get started 67 | - [Documentation](docs/CONTRIBUTING.md#documentation-changes), [code](docs/CONTRIBUTING.md#code-changes), [translations](docs/CONTRIBUTING.md#translations) and UI improvements are all welcome! 68 | 69 | ## Bug reporting / debugging: 70 | - If you were simply told "Error" while installing, reboot and see if there's still an issue 71 | - When installing an extension from GNOME's extension site, this is normal 72 | - A log of what the extension is doing is very helpful for fixing issues 73 | - The extension logs to the system logs when enabled, which can be accessed with `journalctl /usr/bin/gnome-shell` 74 | - A live feed of GNOME's logs can be accessed with `journalctl /usr/bin/gnome-shell -f -o cat` 75 | 76 | ### Credits: 77 | - `scripts/update-po.sh` and `scripts/update-pot.sh` were derived from [Fly-Pie](https://github.com/Schneegans/Fly-Pie), originally licensed under the [MIT License](https://github.com/Schneegans/Fly-Pie/blob/develop/LICENSE) 78 | 79 | ### Screenshot: 80 | ![Extension](docs/screenshot.png) 81 | -------------------------------------------------------------------------------- /docs/CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## Changelog: 2 | 3 | ### v26: - `2024-02-08` 4 | - Added GNOME 48 support 5 | - Added extension settings shortcut to quick settings menu 6 | - Cleaned up code 7 | - Cleaned up project 8 | 9 | ### v25: - `2024-08-06` 10 | - Added GNOME 47 support 11 | - Added Slovak translation - [Jozef](https://github.com/dodog) (#49) 12 | - Updated installation instructions 13 | - Updated pipeline runners 14 | 15 | ### v24: - `2024-02-29` 16 | - Added setting to allow toggling all settings at once by clicking the privacy group 17 | - Added support for GNOME 46 18 | - Updated subtitle text (All disabled -> Privacy, x enabled -> x allowed) 19 | - Highlight toggle menu entry when all settings are enabled (privacy mode) 20 | - Enabled quick settings grouping by default 21 | - Code quality improvements 22 | - Updated translations (#44, #45, #46, #47) 23 | 24 | ### v23: - `2024-01-24` 25 | - Updated extension to use newer GJS features 26 | - Updated Italian translation (#39) 27 | - Updated Russian translation (#40) 28 | 29 | ### v22: - `2023-11-18` 30 | - Added Japanese translation - [Gnuey56](https://github.com/gnuey56) (#37) 31 | - Updated GitHub runners 32 | 33 | ### v21: - `2023-09-17` 34 | - Updated extension description 35 | - Updated Italian translation (#36) 36 | - Updated README and documentation 37 | 38 | ### v20: - `2023-08-21` 39 | - Hotfix: Stopped exporting generic class names 40 | 41 | ### v19: - `2023-08-21` 42 | - Support GNOME 45 43 | - **Support for earlier versions has been removed** 44 | - Added a new interface, using `libadwaita` 45 | - General code improvements 46 | - Build system improvements 47 | 48 | ### v18: - `2023-08-16` 49 | **This release will be the final release to support pre-45 versions of GNOME** 50 | - Updated translations (#32) 51 | - Added Brazilian Portuguese translation - [Daimar](https://github.com/not-a-dev-stein) (#33) 52 | - Added GitHub sponsor link to metadata 53 | 54 | ### v17: - `2023-07-21` 55 | - Code cleanup 56 | - Open the grouped settings when any part of the indicator is pressed 57 | - Added a subtitle to grouped settings to show current status 58 | - Added a setting to control new subtitle status 59 | - Updated translations (#28, #29, #30, #31) 60 | 61 | ### v16: - `2023-07-10` 62 | - Hotfix: removed unused import (Clutter) 63 | 64 | ### v15: - `2023-07-10` 65 | - New design for grouped quick settings 66 | - Moved settings out of submenus 67 | - Each setting gets an icon, label and toggle switch 68 | - Updated Italian translation (#25) 69 | - Updated Dutch translation (#26) 70 | 71 | ### v14: - `2023-06-25` 72 | - Added setting to group quick setting toggles 73 | - Use GtkBox as parent element, instead of GtkGrid 74 | - Stopped translating log messages 75 | - Build system improvements 76 | - General code cleanup 77 | - README and documentation fixes 78 | 79 | ### v13: - `2023-06-10` 80 | - Added donation information to metadata 81 | - Internal code structure changes (preparation for future) 82 | 83 | ### v12: - `2023-05-27` 84 | - Renamed extension to "Privacy Quick Settings" 85 | - Replaced tray icon with system privacy icon 86 | - Added Czech translation - [Amereyeu](https://github.com/Amereyeu) (#22) 87 | - Added Persian translation - [mskf1383](https://github.com/mskf1383) (#23) 88 | 89 | ### v11: - `2023-03-20` 90 | - Added Finnish translation - [SamuLumio](https://github.com/SamuLumio) (#21) 91 | - Moved settings toggles above background apps entry in GNOME 44 92 | 93 | ### v10: - `2023-03-01` 94 | - Removed unused import from `prefs.js` 95 | - Build system, runner and README improvements 96 | - Simplify UI file definitions 97 | - Added GNOME 44 support 98 | 99 | ### v9: - `2022-10-09` 100 | - Updated Italian translation #18 101 | - Added Russian translation - [ikibastus1](https://github.com/ikibastus1) 102 | 103 | ### v8: - `2022-10-03` 104 | - Added support for new quick settings area (GNOME 43+) 105 | - Renamed extension to display as "Privacy Quick Settings Menu" 106 | - Updated extension logo and screenshot 107 | - Updated README and styling 108 | - Code quality improvements 109 | 110 | ### v7: - `2022-09-11` 111 | - Added GNOME 43 support 112 | - Minor documentation changes 113 | 114 | ### v6: - `2022-05-22` 115 | - Updated GitHub runner to Ubuntu 22.04 and Python 3.10, test entire build system faster 116 | - Added preferences menu (#8) 117 | - Added preference for position of the status indicator (#8) 118 | - Updated README for new build targets and dependencies (#8) 119 | - Updated documentation 120 | - Build system and structure improvements 121 | - Code styling and quality improvements 122 | 123 | ### v5: - `2022-03-12` 124 | - GNOME 42 support (no changes required) 125 | - Build system updates 126 | 127 | ### v4: - `2021-10-10` 128 | - Added Italian translation - [albanobattistella](https://github.com/albanobattistella) 129 | 130 | ### v3: - `2021-09-29` 131 | - Added German translation - [Etamuk](https://github.com/Etamuk), [Philipp Kiemle](https://github.com/daPhipz) 132 | - Updated README and build system 133 | 134 | ### v2: - `2021-09-19` 135 | - Added missing semicolon 136 | - Added timestamp to log messages 137 | - Added Dutch translation - [Heimen Stoffels](https://github.com/Vistaus) 138 | - Moved `Reset to defaults` into a submenu, to prevent misclicking it 139 | - Potentially improved memory management 140 | - Updated screenshot 141 | 142 | ### v1: - `2021-09-12` 143 | - Initial release 144 | -------------------------------------------------------------------------------- /docs/CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Covenant Code of Conduct 2 | 3 | ## Our Pledge 4 | 5 | We as members, contributors, and leaders pledge to make participation in our 6 | community a harassment-free experience for everyone, regardless of age, body 7 | size, visible or invisible disability, ethnicity, sex characteristics, gender 8 | identity and expression, level of experience, education, socio-economic status, 9 | nationality, personal appearance, race, caste, color, religion, or sexual identity 10 | and orientation. 11 | 12 | We pledge to act and interact in ways that contribute to an open, welcoming, 13 | diverse, inclusive, and healthy community. 14 | 15 | ## Our Standards 16 | 17 | Examples of behavior that contributes to a positive environment for our 18 | community include: 19 | 20 | * Demonstrating empathy and kindness toward other people 21 | * Being respectful of differing opinions, viewpoints, and experiences 22 | * Giving and gracefully accepting constructive feedback 23 | * Accepting responsibility and apologizing to those affected by our mistakes, 24 | and learning from the experience 25 | * Focusing on what is best not just for us as individuals, but for the 26 | overall community 27 | 28 | Examples of unacceptable behavior include: 29 | 30 | * The use of sexualized language or imagery, and sexual attention or 31 | advances of any kind 32 | * Trolling, insulting or derogatory comments, and personal or political attacks 33 | * Public or private harassment 34 | * Publishing others' private information, such as a physical or email 35 | address, without their explicit permission 36 | * Other conduct which could reasonably be considered inappropriate in a 37 | professional setting 38 | 39 | ## Enforcement Responsibilities 40 | 41 | Community leaders are responsible for clarifying and enforcing our standards of 42 | acceptable behavior and will take appropriate and fair corrective action in 43 | response to any behavior that they deem inappropriate, threatening, offensive, 44 | or harmful. 45 | 46 | Community leaders have the right and responsibility to remove, edit, or reject 47 | comments, commits, code, wiki edits, issues, and other contributions that are 48 | not aligned to this Code of Conduct, and will communicate reasons for moderation 49 | decisions when appropriate. 50 | 51 | ## Scope 52 | 53 | This Code of Conduct applies within all community spaces, and also applies when 54 | an individual is officially representing the community in public spaces. 55 | Examples of representing our community include using an official e-mail address, 56 | posting via an official social media account, or acting as an appointed 57 | representative at an online or offline event. 58 | 59 | ## Enforcement 60 | 61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be 62 | reported to the community leaders responsible for enforcement at 63 | [INSERT CONTACT METHOD]. 64 | All complaints will be reviewed and investigated promptly and fairly. 65 | 66 | All community leaders are obligated to respect the privacy and security of the 67 | reporter of any incident. 68 | 69 | ## Enforcement Guidelines 70 | 71 | Community leaders will follow these Community Impact Guidelines in determining 72 | the consequences for any action they deem in violation of this Code of Conduct: 73 | 74 | ### 1. Correction 75 | 76 | **Community Impact**: Use of inappropriate language or other behavior deemed 77 | unprofessional or unwelcome in the community. 78 | 79 | **Consequence**: A private, written warning from community leaders, providing 80 | clarity around the nature of the violation and an explanation of why the 81 | behavior was inappropriate. A public apology may be requested. 82 | 83 | ### 2. Warning 84 | 85 | **Community Impact**: A violation through a single incident or series 86 | of actions. 87 | 88 | **Consequence**: A warning with consequences for continued behavior. No 89 | interaction with the people involved, including unsolicited interaction with 90 | those enforcing the Code of Conduct, for a specified period of time. This 91 | includes avoiding interactions in community spaces as well as external channels 92 | like social media. Violating these terms may lead to a temporary or 93 | permanent ban. 94 | 95 | ### 3. Temporary Ban 96 | 97 | **Community Impact**: A serious violation of community standards, including 98 | sustained inappropriate behavior. 99 | 100 | **Consequence**: A temporary ban from any sort of interaction or public 101 | communication with the community for a specified period of time. No public or 102 | private interaction with the people involved, including unsolicited interaction 103 | with those enforcing the Code of Conduct, is allowed during this period. 104 | Violating these terms may lead to a permanent ban. 105 | 106 | ### 4. Permanent Ban 107 | 108 | **Community Impact**: Demonstrating a pattern of violation of community 109 | standards, including sustained inappropriate behavior, harassment of an 110 | individual, or aggression toward or disparagement of classes of individuals. 111 | 112 | **Consequence**: A permanent ban from any sort of public interaction within 113 | the community. 114 | 115 | ## Attribution 116 | 117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage], 118 | version 2.1, available at 119 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1]. 120 | 121 | Community Impact Guidelines were inspired by 122 | [Mozilla's code of conduct enforcement ladder][Mozilla CoC]. 123 | 124 | For answers to common questions about this code of conduct, see the FAQ at 125 | [https://www.contributor-covenant.org/faq][FAQ]. Translations are available 126 | at [https://www.contributor-covenant.org/translations][translations]. 127 | 128 | [homepage]: https://www.contributor-covenant.org 129 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html 130 | [Mozilla CoC]: https://github.com/mozilla/diversity 131 | [FAQ]: https://www.contributor-covenant.org/faq 132 | [translations]: https://www.contributor-covenant.org/translations 133 | 134 | -------------------------------------------------------------------------------- /docs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing to privacy-menu-extension 2 | ## Overview: 3 | - Your contributions and pull requests are welcome, this project can always use extra help! 4 | - In short, to contribute: 5 | - Make an issue describing what you're working on 6 | - Thoroughly test the contribution 7 | - Create a merge request, and make any requested changes 8 | 9 | ## Suggestions for contributing: 10 | - New or improved translations 11 | - Fixes and additions to documentation 12 | - Bug fixes and feature additions 13 | - UI improvements 14 | 15 | ## Translations: 16 | - To add a new language, use `./scripts/update-po.sh -l [LANGUAGE CODE]` 17 | - `.po` files can be found in `extension/po/` 18 | - All translations can be refreshed with `make translations` 19 | - Strings marked with `fuzzy` may need a better translation 20 | - Blank strings need a translation added 21 | 22 | ## UI changes: 23 | - The UI is built programmatically with `libadwaita`, in `extension/prefs.js` 24 | - Changes to this must be compatible with the oldest version of GNOME supported 25 | - If this won't work, it can be conditionally enabled 26 | - If there's a good enough reason to drop the old version, this is also an option 27 | 28 | ## Documentation changes: 29 | - British English should be used in documentation, as well as consistent styling 30 | - Any new dependencies should be documented under the relevant dependency section 31 | - Documented information should be updated if the behaviour has changed 32 | 33 | ## Build system changes: 34 | - If the behaviour of a target is modified, it should be documented in `README.md`, under "Build system usage" 35 | - New build system targets should be documented there, and removed targets removed from there as well 36 | - New scripts should be placed in `scripts/`, and existing scripts are all located there 37 | 38 | ## Code changes: 39 | - The extension bundle can be created with `make build` 40 | - `make install` will install the bundle from `make build` 41 | - After changes have been made, run `make build; make check` to check the built bundle is alright 42 | - The extension can be removed with `make uninstall`, if it's non-functional 43 | - Debugging information can be found in `README.md`, under "Bug reporting / debugging" 44 | 45 | ## Submitting a pull request: 46 | - When you believe your contribution to be complete, submit a pull request 47 | - Follow the template provided when creating a pull request, and fill out relevant information 48 | - If the code isn't ready to be merged yet, submit the changes as a draft 49 | - Your changes will be reviewed and either given suggestions for changes, or it'll be approved and merged 50 | - If possible, please write a summary of changes you made. This makes it easier to make a new release and document the changes 51 | 52 | ## Other informaton: 53 | - ALL changes must be allowed under the license (See `LICENSE.md`) 54 | - ALL changes and discussions must abide by the Code of Conduct (`docs/CODE_OF_CONDUCT.md`) 55 | -------------------------------------------------------------------------------- /docs/icon.svg: -------------------------------------------------------------------------------- 1 | 2 | 13 | 15 | 38 | 42 | 59 | 62 | 64 | 68 | 72 | 73 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /docs/screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/stuarthayhurst/privacy-menu-extension/6130df4ed2a693d199d7642f6cff9fcc690634fc/docs/screenshot.png -------------------------------------------------------------------------------- /extension/extension.js: -------------------------------------------------------------------------------- 1 | //Main imports 2 | import St from 'gi://St'; 3 | import Gio from 'gi://Gio'; 4 | import GObject from 'gi://GObject'; 5 | 6 | import * as Main from 'resource:///org/gnome/shell/ui/main.js'; 7 | import * as PanelMenu from 'resource:///org/gnome/shell/ui/panelMenu.js'; 8 | import * as PopupMenu from 'resource:///org/gnome/shell/ui/popupMenu.js'; 9 | import {PopupAnimation} from 'resource:///org/gnome/shell/ui/boxpointer.js'; 10 | 11 | import * as QuickSettings from 'resource:///org/gnome/shell/ui/quickSettings.js'; 12 | const QuickSettingsMenu = Main.panel.statusArea.quickSettings; 13 | 14 | //Extension system imports 15 | import {Extension, gettext as _} from 'resource:///org/gnome/shell/extensions/extension.js'; 16 | 17 | //Constants for menu display modes 18 | const DisplayMode = { 19 | QuickToggles: 0, 20 | QuickGroup: 1, 21 | Indicators: 2 22 | }; 23 | 24 | //Custom PopupMenuItem with an icon, label and switch 25 | const PrivacySettingImageSwitchItem = GObject.registerClass( 26 | class PrivacySettingImageSwitchItem extends PopupMenu.PopupSwitchMenuItem { 27 | _init(text, icon, active) { 28 | super._init(text, active, {}); 29 | 30 | this._icon = new St.Icon({ 31 | style_class: 'popup-menu-icon', 32 | }); 33 | 34 | this.insert_child_below(this._icon, this.label); 35 | this._icon.icon_name = icon; 36 | } 37 | } 38 | ); 39 | 40 | const PrivacyIndicator = GObject.registerClass( 41 | class PrivacyIndicator extends PanelMenu.Button{ 42 | _init() { 43 | super._init(0.0, _('Privacy Settings Menu Indicator')); 44 | 45 | //Set an icon for the indicator 46 | this.add_child(new St.Icon({ 47 | gicon: Gio.ThemedIcon.new('preferences-system-privacy-symbolic'), 48 | style_class: 'system-status-icon' 49 | })); 50 | 51 | //GSettings access 52 | this._privacySettings = new Gio.Settings({schema: 'org.gnome.desktop.privacy'}); 53 | this._locationSettings = new Gio.Settings({schema: 'org.gnome.system.location'}); 54 | } 55 | 56 | _resetSettings() { 57 | let privacySettings = new Gio.Settings({schema: 'org.gnome.desktop.privacy'}); 58 | let locationSettings = new Gio.Settings({schema: 'org.gnome.system.location'}); 59 | 60 | //Reset the settings 61 | locationSettings.reset('enabled'); 62 | privacySettings.reset('disable-camera'); 63 | privacySettings.reset('disable-microphone'); 64 | } 65 | 66 | addEntries() { 67 | this.menu.addMenuItem(new PopupMenu.PopupMenuItem( 68 | _('Privacy Settings'), 69 | {reactive: false} 70 | )); 71 | this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); 72 | 73 | let toggleItems = [ 74 | new PrivacySettingImageSwitchItem(_('Location'), 'location-services-active-symbolic', true), 75 | new PrivacySettingImageSwitchItem(_('Camera'), 'camera-photo-symbolic', true), 76 | new PrivacySettingImageSwitchItem(_('Microphone'), 'audio-input-microphone-symbolic', true) 77 | ]; 78 | 79 | let gsettingsSchemas = [ 80 | //Schema, key, bind flags 81 | [this._locationSettings, 'enabled', Gio.SettingsBindFlags.DEFAULT], 82 | [this._privacySettings, 'disable-camera', Gio.SettingsBindFlags.INVERT_BOOLEAN], 83 | [this._privacySettings, 'disable-microphone', Gio.SettingsBindFlags.INVERT_BOOLEAN] 84 | ]; 85 | 86 | //Create menu entries for each setting toggle 87 | toggleItems.forEach((toggleItem, i) => { 88 | gsettingsSchemas[i][0].bind( 89 | gsettingsSchemas[i][1], //GSettings key to bind to 90 | toggleItem._switch, //Toggle switch to bind to 91 | 'state', //Property to share 92 | gsettingsSchemas[i][2] //Binding flags 93 | ); 94 | 95 | //Add each item to the main menu 96 | this.menu.addMenuItem(toggleItem); 97 | }); 98 | 99 | //Separator to separate reset option 100 | this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); 101 | 102 | //Create a submenu for the reset option, to prevent a misclick 103 | let subMenu = new PopupMenu.PopupSubMenuMenuItem(_('Reset settings'), true); 104 | subMenu.icon.icon_name = 'edit-delete-symbolic'; 105 | subMenu.menu.addAction(_('Reset to defaults'), this._resetSettings, null); 106 | 107 | this.menu.addMenuItem(subMenu); 108 | } 109 | } 110 | ); 111 | 112 | //Class for individual privacy quick settings toggles 113 | const PrivacyQuickToggle = GObject.registerClass( 114 | class PrivacyQuickToggle extends QuickSettings.QuickToggle { 115 | _init(settingName, settingIcon, settingSchema, settingKey, settingBindFlag) { 116 | //Set up the quick setting toggle 117 | super._init({ 118 | title: settingName, 119 | iconName: settingIcon, 120 | toggleMode: true, 121 | }); 122 | 123 | //GSettings access 124 | this._settings = new Gio.Settings({schema: settingSchema}); 125 | 126 | //Bind the setting and toggle together 127 | this._settings.bind( 128 | settingKey, //GSettings key to bind to 129 | this, //UI element to bind to 130 | 'checked', //Property to share 131 | settingBindFlag //Bind flag 132 | ); 133 | } 134 | } 135 | ); 136 | 137 | //Class for the privacy quick settings group 138 | const PrivacyQuickGroup = GObject.registerClass( 139 | class PrivacyQuickGroup extends QuickSettings.QuickMenuToggle { 140 | _init(extension, useQuickSubtitle, clickToToggle) { 141 | //Set up the quick setting toggle 142 | super._init({ 143 | title: _('Privacy'), 144 | iconName: 'preferences-system-privacy-symbolic', 145 | toggleMode: false, 146 | }); 147 | 148 | //Set a menu header 149 | this.menu.setHeader('preferences-system-privacy-symbolic', _('Privacy Settings')); 150 | 151 | //Open the menu or toggle all settings when the body is clicked 152 | this.connect('clicked', () => { 153 | if (clickToToggle) { 154 | //Enable / disable every setting according to its bind flag 155 | let targetState = this.checked; 156 | this._settingsInfo.forEach((settingInfo) => { 157 | let newState = targetState ^ (settingInfo[2] == Gio.SettingsBindFlags.INVERT_BOOLEAN); 158 | settingInfo[0].set_boolean(settingInfo[1], newState); 159 | }); 160 | } else { 161 | this.menu.open(); 162 | } 163 | }); 164 | 165 | //GSettings access 166 | this._privacySettings = new Gio.Settings({schema: 'org.gnome.desktop.privacy'}); 167 | this._locationSettings = new Gio.Settings({schema: 'org.gnome.system.location'}); 168 | 169 | this._toggleDisplayInfo = [ 170 | //Display name, icon name 171 | [_('Location'), 'location-services-active-symbolic'], 172 | [_('Camera'), 'camera-photo-symbolic'], 173 | [_('Microphone'), 'audio-input-microphone-symbolic'] 174 | ]; 175 | 176 | this._settingsInfo = [ 177 | //Schema, key, bind flags 178 | [this._locationSettings, 'enabled', Gio.SettingsBindFlags.DEFAULT], 179 | [this._privacySettings, 'disable-camera', Gio.SettingsBindFlags.INVERT_BOOLEAN], 180 | [this._privacySettings, 'disable-microphone', Gio.SettingsBindFlags.INVERT_BOOLEAN] 181 | ]; 182 | 183 | this._toggleItems = []; 184 | 185 | //Create menu entries for each setting toggle 186 | this._toggleDisplayInfo.forEach((displayInfo, i) => { 187 | this._toggleItems.push( 188 | new PrivacySettingImageSwitchItem(displayInfo[0], displayInfo[1], true) 189 | ); 190 | 191 | //Update subtitle when settings changed 192 | let event = 'changed::' + this._settingsInfo[i][1]; 193 | this._settingsInfo[i][0].connectObject(event, () => { 194 | this._updateSubtitle(); this._updateVisualState(); 195 | }, this); 196 | 197 | //Link the setting value and the switch state 198 | this._settingsInfo[i][0].bind( 199 | this._settingsInfo[i][1], //GSettings key to bind to 200 | this._toggleItems[i]._switch, //Toggle switch to bind to 201 | 'state', //Property to share 202 | this._settingsInfo[i][2] //Binding flags 203 | ); 204 | 205 | //Add each item to the main menu 206 | this.menu.addMenuItem(this._toggleItems[i]); 207 | }); 208 | 209 | //Set the subtitle 210 | this._useQuickSubtitle = useQuickSubtitle; 211 | this._updateSubtitle(); 212 | 213 | //Add extension settings entry 214 | this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem()); 215 | let settingsItem = this.menu.addAction(_('Extension Settings'), () => { 216 | extension.openPreferences(); 217 | QuickSettingsMenu.menu.close(PopupAnimation.FADE); 218 | }); 219 | 220 | //Hide the settings when the screen is locked 221 | settingsItem.visible = Main.sessionMode.allowSettings; 222 | this.menu._settingsActions[extension.uuid] = settingsItem; 223 | 224 | //Set initial enabled / disabled 225 | this._updateVisualState(); 226 | } 227 | 228 | _updateVisualState() { 229 | //If all of the privacy settings are disabled, set enableToggle to true 230 | let enableToggle = true; 231 | this._settingsInfo.forEach((settingInfo) => { 232 | let settingEnabled = settingInfo[0].get_boolean(settingInfo[1]); 233 | if (settingEnabled == (settingInfo[2] != Gio.SettingsBindFlags.INVERT_BOOLEAN)) { 234 | enableToggle = false; 235 | } 236 | }); 237 | 238 | //Set the state of the menu toggle 239 | this.checked = enableToggle; 240 | } 241 | 242 | _updateSubtitle() { 243 | //Skip if disabled 244 | if (!this._useQuickSubtitle) { 245 | return; 246 | } 247 | 248 | //Get the number of enabled settings 249 | let enabledSettingsCount = 0; 250 | let enabledSettingName = ''; 251 | this._settingsInfo.forEach((settingInfo, i) => { 252 | let settingEnabled = settingInfo[0].get_boolean(settingInfo[1]); 253 | if (settingEnabled == (settingInfo[2] != Gio.SettingsBindFlags.INVERT_BOOLEAN)) { 254 | enabledSettingsCount += 1; 255 | enabledSettingName = this._toggleDisplayInfo[i][0]; 256 | } 257 | }); 258 | 259 | if (enabledSettingsCount == 0) { 260 | //If no settings are enabled, display 'Private' 261 | this.subtitle = _('Private'); 262 | } else if (enabledSettingsCount == 1) { 263 | //If 1 setting is enabled, mention it by name 264 | this.subtitle = enabledSettingName; 265 | } else { 266 | //If multiple are enabled, display how many 267 | //Translators: this displays how many settings are enabled, e.g. '1 allowed' 268 | this.subtitle = enabledSettingsCount + _(' allowed'); 269 | } 270 | } 271 | 272 | clean() { 273 | //Disconnect from settings 274 | this._settingsInfo.forEach((settingInfo) => { 275 | settingInfo[0].disconnectObject(this); 276 | }); 277 | } 278 | } 279 | ); 280 | 281 | class QuickSettingsManager { 282 | constructor() { 283 | this._quickSettingToggles = []; 284 | 285 | //Info to create toggles: settingName, settingIcon, settingSchema, settingKey, settingBindFlag 286 | let quickSettingsInfo = [ 287 | [_('Location'), 'location-services-active-symbolic', 'org.gnome.system.location', 'enabled', Gio.SettingsBindFlags.DEFAULT], 288 | [_('Camera'), 'camera-photo-symbolic', 'org.gnome.desktop.privacy', 'disable-camera', Gio.SettingsBindFlags.INVERT_BOOLEAN], 289 | [_('Microphone'), 'audio-input-microphone-symbolic', 'org.gnome.desktop.privacy', 'disable-microphone', Gio.SettingsBindFlags.INVERT_BOOLEAN] 290 | ]; 291 | 292 | //Create a quick setting toggle for each privacy setting 293 | quickSettingsInfo.forEach((quickSettingInfo, i) => { 294 | this._quickSettingToggles.push( 295 | new PrivacyQuickToggle( 296 | quickSettingInfo[0], quickSettingInfo[1], 297 | quickSettingInfo[2], quickSettingInfo[3], 298 | quickSettingInfo[4] 299 | ) 300 | ); 301 | 302 | //Add the toggle to the system menu 303 | let backgroundApps = QuickSettingsMenu._backgroundApps?.quickSettingsItems?.at(-1) ?? null; 304 | QuickSettingsMenu.menu.insertItemBefore(this._quickSettingToggles[i], backgroundApps); 305 | }); 306 | } 307 | 308 | clean() { 309 | //Destroy each created quick settings toggle 310 | this._quickSettingToggles.forEach((quickSettingToggle) => { 311 | quickSettingToggle.destroy(); 312 | }); 313 | 314 | //Remove each tracked entry 315 | this._quickSettingToggles = []; 316 | } 317 | } 318 | 319 | class QuickGroupManager { 320 | constructor(extension, useQuickSubtitle, clickToToggle) { 321 | //Create quick settings group and add to the system menu 322 | this._quickSettingsGroup = new PrivacyQuickGroup(extension, useQuickSubtitle, clickToToggle); 323 | let backgroundApps = QuickSettingsMenu._backgroundApps?.quickSettingsItems?.at(-1) ?? null; 324 | QuickSettingsMenu.menu.insertItemBefore(this._quickSettingsGroup, backgroundApps); 325 | } 326 | 327 | clean() { 328 | this._quickSettingsGroup.clean(); 329 | this._quickSettingsGroup.destroy(); 330 | this._quickSettingsGroup = null; 331 | } 332 | } 333 | 334 | class IndicatorSettingsManager { 335 | constructor(forceIconRight) { 336 | //Create and setup indicator and menu 337 | this._indicator = new PrivacyIndicator(); 338 | 339 | //Add menu entries 340 | this._indicator.addEntries(); 341 | 342 | //Get position to insert icon (left or right) 343 | let offset = 0; 344 | if (forceIconRight) { 345 | offset = Main.panel._rightBox.get_n_children() - 1; 346 | } 347 | 348 | //Add to panel 349 | Main.panel.addToStatusArea('privacy-menu', this._indicator, offset); 350 | } 351 | 352 | clean() { 353 | //Destroy the indicator 354 | this._indicator.remove_all_children(); 355 | this._indicator.destroy(); 356 | this._inidcator = null; 357 | } 358 | } 359 | 360 | export default class PrivacyQuickSettingsManager extends Extension { 361 | enable() { 362 | //Create new extension 363 | this._privacyMenu = new PrivacyExtension(this); 364 | 365 | //Create menu 366 | this._privacyMenu.initMenu(); 367 | } 368 | 369 | disable() { 370 | //Disconnect listeners, then destroy the menu and class 371 | this._privacyMenu.disconnectListeners(); 372 | this._privacyMenu.destroyMenu(); 373 | this._privacyMenu = null; 374 | } 375 | } 376 | 377 | class PrivacyExtension { 378 | constructor(extension) { 379 | this._privacyManager = null; 380 | this._extension = extension; 381 | this._extensionSettings = this._extension.getSettings(); 382 | } 383 | 384 | disconnectListeners() { 385 | this._extensionSettings.disconnectObject(this); 386 | } 387 | 388 | _decideMenuType() { 389 | /* 390 | - Return DisplayMode.QuickToggles if quick settings are enabled 391 | - If quick settings grouping is also enabled, return DisplayMode.QuickGroup instead 392 | - Otherwise return DisplayMode.Indicators 393 | */ 394 | if (this._extensionSettings.get_boolean('use-quick-settings')) { 395 | if (this._extensionSettings.get_boolean('group-quick-settings')) { 396 | return DisplayMode.QuickGroup; 397 | } 398 | return DisplayMode.QuickToggles; 399 | } 400 | 401 | return DisplayMode.Indicator; 402 | } 403 | 404 | initMenu() { 405 | //Create the correct type of menu 406 | this._createMenu(); 407 | 408 | //When settings change, recreate the menu 409 | this._extensionSettings.connectObject('changed', () => { 410 | //Destroy existing menu and create new menu 411 | this.destroyMenu(); 412 | this._createMenu(); 413 | }, this); 414 | } 415 | 416 | _createMenu() { 417 | //Create the correct type of menu, from preferences and capabilities 418 | switch (this._decideMenuType()) { 419 | case DisplayMode.QuickToggles: 420 | this._privacyManager = new QuickSettingsManager(); 421 | break; 422 | case DisplayMode.QuickGroup: 423 | let useQuickSubtitle = this._extensionSettings.get_boolean('use-quick-subtitle'); 424 | let clickToToggle = this._extensionSettings.get_boolean('click-to-toggle'); 425 | this._privacyManager = new QuickGroupManager(this._extension, useQuickSubtitle, clickToToggle); 426 | break; 427 | case DisplayMode.Indicator: 428 | let forceIconRight = this._extensionSettings.get_boolean('move-icon-right'); 429 | this._privacyManager = new IndicatorSettingsManager(forceIconRight); 430 | break; 431 | } 432 | } 433 | 434 | destroyMenu() { 435 | //Destroy the menu, if created 436 | if (this._privacyManager != null) { 437 | this._privacyManager.clean(); 438 | this._privacyManager = null; 439 | } 440 | } 441 | } 442 | -------------------------------------------------------------------------------- /extension/metadata.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "Privacy Quick Settings", 3 | "description": "Add privacy settings toggles to the GNOME system menu\nNOTE: This only provides quick access to settings, it doesn't directly access hardware", 4 | "uuid": "PrivacyMenu@stuarthayhurst", 5 | "gettext-domain": "PrivacyMenu@stuarthayhurst", 6 | "settings-schema": "org.gnome.shell.extensions.privacy-menu", 7 | "url": "https://github.com/stuarthayhurst/privacy-menu-extension", 8 | "donations": { 9 | "github": "stuarthayhurst", 10 | "paypal": "stuartahayhurst" 11 | }, 12 | "shell-version": [ 13 | "45", "46", "47", "48" 14 | ], 15 | "version": 26 16 | } 17 | -------------------------------------------------------------------------------- /extension/po/cs.po: -------------------------------------------------------------------------------- 1 | # translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2023 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # FIRST AUTHOR Amerey.eu , 2023. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2023-04-05 15:15+0200\n" 12 | "Last-Translator: Amerey.eu \n" 13 | "Language-Team: \n" 14 | "Language: cs\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n" 19 | "X-Generator: Poedit 3.1.1\n" 20 | 21 | #: extension/extension.js:42 22 | msgid "Privacy Settings Menu Indicator" 23 | msgstr "Indikátor nabídky nastavení soukromí" 24 | 25 | #: extension/extension.js:67 extension/extension.js:148 26 | msgid "Privacy Settings" 27 | msgstr "Nastavení soukromí" 28 | 29 | #: extension/extension.js:73 extension/extension.js:170 30 | #: extension/extension.js:285 31 | msgid "Location" 32 | msgstr "Poloha" 33 | 34 | #: extension/extension.js:74 extension/extension.js:171 35 | #: extension/extension.js:286 36 | msgid "Camera" 37 | msgstr "Kamera" 38 | 39 | #: extension/extension.js:75 extension/extension.js:172 40 | #: extension/extension.js:287 41 | msgid "Microphone" 42 | msgstr "Mikrofon" 43 | 44 | #: extension/extension.js:102 45 | msgid "Reset settings" 46 | msgstr "Obnovit nastavení" 47 | 48 | #: extension/extension.js:104 49 | msgid "Reset to defaults" 50 | msgstr "Nastavit výchozí hodnoty" 51 | 52 | #: extension/extension.js:142 53 | msgid "Privacy" 54 | msgstr "" 55 | 56 | #: extension/extension.js:214 57 | msgid "Extension Settings" 58 | msgstr "" 59 | 60 | #: extension/extension.js:259 61 | msgid "Private" 62 | msgstr "" 63 | 64 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 65 | #: extension/extension.js:266 66 | msgid " allowed" 67 | msgstr "" 68 | 69 | #: extension/prefs.js:129 70 | msgid "Settings" 71 | msgstr "Nastavení" 72 | 73 | #: extension/prefs.js:133 74 | msgid "General settings" 75 | msgstr "Obecné nastavení" 76 | 77 | #: extension/prefs.js:134 78 | msgid "Menu settings" 79 | msgstr "" 80 | 81 | #: extension/prefs.js:139 82 | msgid "Move status icon right" 83 | msgstr "Přesunout ikonu doprava" 84 | 85 | #: extension/prefs.js:139 86 | msgid "Force the icon to move to right side of the status area" 87 | msgstr "Vynutit přesun ikony na pravou stranu ve stavové oblasti" 88 | 89 | #: extension/prefs.js:140 90 | msgid "Use quick settings menu" 91 | msgstr "Použijte nabídku rychlého nastavení" 92 | 93 | #: extension/prefs.js:140 94 | msgid "Use the system quick settings area, instead of an indicator" 95 | msgstr "Místo ikony použijte oblast rychlého nastavení systému" 96 | 97 | #: extension/prefs.js:141 98 | msgid "Group quick settings" 99 | msgstr "" 100 | 101 | #: extension/prefs.js:141 102 | msgid "Group quick settings together, into a menu" 103 | msgstr "" 104 | 105 | #: extension/prefs.js:142 106 | msgid "Use quick settings subtitle" 107 | msgstr "" 108 | 109 | #: extension/prefs.js:142 110 | msgid "Show the privacy status in the quick settings subtitle" 111 | msgstr "" 112 | 113 | #: extension/prefs.js:143 114 | msgid "Toggle all settings at once" 115 | msgstr "" 116 | 117 | #: extension/prefs.js:143 118 | msgid "" 119 | "Enable or disable all privacy settings at once, when the group is pressed" 120 | msgstr "" 121 | 122 | #: extension/prefs.js:152 123 | msgid "Report an issue" 124 | msgstr "" 125 | 126 | #: extension/prefs.js:152 127 | msgid "GitHub issue tracker" 128 | msgstr "" 129 | 130 | #: extension/prefs.js:153 131 | msgid "Donate via GitHub" 132 | msgstr "" 133 | 134 | #: extension/prefs.js:153 135 | msgid "Become a sponsor" 136 | msgstr "" 137 | 138 | #: extension/prefs.js:154 139 | msgid "Donate via PayPal" 140 | msgstr "" 141 | 142 | #: extension/prefs.js:154 143 | msgid "Thanks for your support :)" 144 | msgstr "" 145 | 146 | #: extension/prefs.js:156 147 | msgid "Links" 148 | msgstr "" 149 | -------------------------------------------------------------------------------- /extension/po/de.po: -------------------------------------------------------------------------------- 1 | # German translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2021 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Onno Giesmann , 2021. 5 | # Philipp Kiemle , 2021-2024. 6 | # 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: privacy-menu-extension\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 12 | "PO-Revision-Date: 2024-02-14 01:35+0100\n" 13 | "Last-Translator: Philipp Kiemle \n" 14 | "Language-Team: \n" 15 | "Language: de\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 | "X-Generator: Poedit 3.4.2\n" 21 | 22 | #: extension/extension.js:42 23 | msgid "Privacy Settings Menu Indicator" 24 | msgstr "Menü-Indikator für Datenschutzeinstellungen" 25 | 26 | #: extension/extension.js:67 extension/extension.js:148 27 | msgid "Privacy Settings" 28 | msgstr "Datenschutzeinstellungen" 29 | 30 | #: extension/extension.js:73 extension/extension.js:170 31 | #: extension/extension.js:285 32 | msgid "Location" 33 | msgstr "Ortungsdienste" 34 | 35 | #: extension/extension.js:74 extension/extension.js:171 36 | #: extension/extension.js:286 37 | msgid "Camera" 38 | msgstr "Kamera" 39 | 40 | #: extension/extension.js:75 extension/extension.js:172 41 | #: extension/extension.js:287 42 | msgid "Microphone" 43 | msgstr "Mikrofon" 44 | 45 | #: extension/extension.js:102 46 | msgid "Reset settings" 47 | msgstr "Einstellungen zurücksetzen" 48 | 49 | #: extension/extension.js:104 50 | msgid "Reset to defaults" 51 | msgstr "Auf Voreinstellungen zurücksetzen" 52 | 53 | #: extension/extension.js:142 54 | msgid "Privacy" 55 | msgstr "Privatsphäre" 56 | 57 | #: extension/extension.js:214 58 | msgid "Extension Settings" 59 | msgstr "" 60 | 61 | #: extension/extension.js:259 62 | msgid "Private" 63 | msgstr "Privat" 64 | 65 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 66 | #: extension/extension.js:266 67 | msgid " allowed" 68 | msgstr " erlaubt" 69 | 70 | #: extension/prefs.js:129 71 | msgid "Settings" 72 | msgstr "Einstellungen" 73 | 74 | #: extension/prefs.js:133 75 | msgid "General settings" 76 | msgstr "Allgemeine Einstellungen" 77 | 78 | #: extension/prefs.js:134 79 | msgid "Menu settings" 80 | msgstr "Menüeinstellungen" 81 | 82 | #: extension/prefs.js:139 83 | msgid "Move status icon right" 84 | msgstr "Status-Symbol nach rechts verschieben" 85 | 86 | #: extension/prefs.js:139 87 | msgid "Force the icon to move to right side of the status area" 88 | msgstr "" 89 | "Das Symbol wird auf die rechte Privacy Quick Settings Menu GNOME " 90 | "ExtensionSeite der Statusleiste verschoben" 91 | 92 | #: extension/prefs.js:140 93 | msgid "Use quick settings menu" 94 | msgstr "Schnelleinstellungsmenü verwenden" 95 | 96 | #: extension/prefs.js:140 97 | msgid "Use the system quick settings area, instead of an indicator" 98 | msgstr "" 99 | "Den Schnelleinstellungen-Bereich des Systems statt eines Indikators verwenden" 100 | 101 | #: extension/prefs.js:141 102 | msgid "Group quick settings" 103 | msgstr "Schnelleinstellungen bündeln" 104 | 105 | #: extension/prefs.js:141 106 | msgid "Group quick settings together, into a menu" 107 | msgstr "Schnelleinstellungen in einem Menü bündeln" 108 | 109 | #: extension/prefs.js:142 110 | msgid "Use quick settings subtitle" 111 | msgstr "Untertitel für Schnelleinstellungen verwenden" 112 | 113 | #: extension/prefs.js:142 114 | msgid "Show the privacy status in the quick settings subtitle" 115 | msgstr "" 116 | "Den Privatsphäre-Status im Untertitel für Schnelleinstellungen anzeigen" 117 | 118 | #: extension/prefs.js:143 119 | msgid "Toggle all settings at once" 120 | msgstr "Alle Einstellungen auf einmal umschalten" 121 | 122 | #: extension/prefs.js:143 123 | msgid "" 124 | "Enable or disable all privacy settings at once, when the group is pressed" 125 | msgstr "" 126 | "Alle Privatsphäre-Einstellungen auf einmal umschalten, wenn die Gruppe " 127 | "gedrückt wird" 128 | 129 | #: extension/prefs.js:152 130 | msgid "Report an issue" 131 | msgstr "Einen Fehler melden" 132 | 133 | #: extension/prefs.js:152 134 | msgid "GitHub issue tracker" 135 | msgstr "GitHub Fehlerverfolgungssystem" 136 | 137 | #: extension/prefs.js:153 138 | msgid "Donate via GitHub" 139 | msgstr "Per GitHub spenden" 140 | 141 | #: extension/prefs.js:153 142 | msgid "Become a sponsor" 143 | msgstr "Ein Sponsor werden" 144 | 145 | #: extension/prefs.js:154 146 | msgid "Donate via PayPal" 147 | msgstr "Per PayPal spenden" 148 | 149 | #: extension/prefs.js:154 150 | msgid "Thanks for your support :)" 151 | msgstr "Vielen Dank für Ihre Unterstützung :)" 152 | 153 | #: extension/prefs.js:156 154 | msgid "Links" 155 | msgstr "Links" 156 | -------------------------------------------------------------------------------- /extension/po/fa_IR.po: -------------------------------------------------------------------------------- 1 | # translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2023 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # FIRST AUTHOR , YEAR. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2023-07-14 13:08+0330\n" 12 | "Last-Translator: MohammadSaleh Kamyab \n" 13 | "Language-Team: \n" 14 | "Language: fa_IR\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n==0 || n==1);\n" 19 | "X-Generator: Poedit 3.2.2\n" 20 | 21 | #: extension/extension.js:42 22 | msgid "Privacy Settings Menu Indicator" 23 | msgstr "نشانگر فهرست تنظیمات محرمانگی" 24 | 25 | #: extension/extension.js:67 extension/extension.js:148 26 | msgid "Privacy Settings" 27 | msgstr "تنظیمات محرمانگی" 28 | 29 | #: extension/extension.js:73 extension/extension.js:170 30 | #: extension/extension.js:285 31 | msgid "Location" 32 | msgstr "مکان" 33 | 34 | #: extension/extension.js:74 extension/extension.js:171 35 | #: extension/extension.js:286 36 | msgid "Camera" 37 | msgstr "دوربین" 38 | 39 | #: extension/extension.js:75 extension/extension.js:172 40 | #: extension/extension.js:287 41 | msgid "Microphone" 42 | msgstr "صدابَر" 43 | 44 | #: extension/extension.js:102 45 | msgid "Reset settings" 46 | msgstr "بازنشانی تنظیمات" 47 | 48 | #: extension/extension.js:104 49 | msgid "Reset to defaults" 50 | msgstr "بازنشانی به پیش‌گزیده" 51 | 52 | #: extension/extension.js:142 53 | msgid "Privacy" 54 | msgstr "محرمانگی" 55 | 56 | #: extension/extension.js:214 57 | msgid "Extension Settings" 58 | msgstr "" 59 | 60 | #: extension/extension.js:259 61 | msgid "Private" 62 | msgstr "" 63 | 64 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 65 | #: extension/extension.js:266 66 | msgid " allowed" 67 | msgstr "" 68 | 69 | #: extension/prefs.js:129 70 | msgid "Settings" 71 | msgstr "تنظیمات" 72 | 73 | #: extension/prefs.js:133 74 | msgid "General settings" 75 | msgstr "تنظیمات عمومی" 76 | 77 | #: extension/prefs.js:134 78 | msgid "Menu settings" 79 | msgstr "" 80 | 81 | #: extension/prefs.js:139 82 | msgid "Move status icon right" 83 | msgstr "انتقال نقشک وضعیت به راست" 84 | 85 | #: extension/prefs.js:139 86 | msgid "Force the icon to move to right side of the status area" 87 | msgstr "انتقال اجباری نقشک به سمت راست ناحیهٔ وضعیت" 88 | 89 | #: extension/prefs.js:140 90 | msgid "Use quick settings menu" 91 | msgstr "استفاده از فهرست تنظیمات سریع" 92 | 93 | #: extension/prefs.js:140 94 | msgid "Use the system quick settings area, instead of an indicator" 95 | msgstr "استفاده از ناحیهٔ تنظیمات سریع به جای نشانگر" 96 | 97 | #: extension/prefs.js:141 98 | msgid "Group quick settings" 99 | msgstr "گروه‌بندی تنظیمات سریع" 100 | 101 | #: extension/prefs.js:141 102 | msgid "Group quick settings together, into a menu" 103 | msgstr "گروه‌بندی تنظیمات سریع در یک فهرست" 104 | 105 | #: extension/prefs.js:142 106 | msgid "Use quick settings subtitle" 107 | msgstr "استفاده از زیرنویس تنظیمات سریع" 108 | 109 | #: extension/prefs.js:142 110 | msgid "Show the privacy status in the quick settings subtitle" 111 | msgstr "نمایش وضعیت محرمانگی در زیرنویس تنظیمات سریع" 112 | 113 | #: extension/prefs.js:143 114 | msgid "Toggle all settings at once" 115 | msgstr "" 116 | 117 | #: extension/prefs.js:143 118 | msgid "" 119 | "Enable or disable all privacy settings at once, when the group is pressed" 120 | msgstr "" 121 | 122 | #: extension/prefs.js:152 123 | msgid "Report an issue" 124 | msgstr "" 125 | 126 | #: extension/prefs.js:152 127 | msgid "GitHub issue tracker" 128 | msgstr "" 129 | 130 | #: extension/prefs.js:153 131 | msgid "Donate via GitHub" 132 | msgstr "" 133 | 134 | #: extension/prefs.js:153 135 | msgid "Become a sponsor" 136 | msgstr "" 137 | 138 | #: extension/prefs.js:154 139 | msgid "Donate via PayPal" 140 | msgstr "" 141 | 142 | #: extension/prefs.js:154 143 | msgid "Thanks for your support :)" 144 | msgstr "" 145 | 146 | #: extension/prefs.js:156 147 | msgid "Links" 148 | msgstr "" 149 | -------------------------------------------------------------------------------- /extension/po/fi.po: -------------------------------------------------------------------------------- 1 | # Finnish translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2023 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Samu Lumio , 2023. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2023-07-18 15:29+0200\n" 12 | "Last-Translator: Samu Lumio \n" 13 | "Language-Team: Finnish \n" 14 | "Language: fi\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: extension/extension.js:42 20 | msgid "Privacy Settings Menu Indicator" 21 | msgstr "Yksityisyysvalintojen Pika-asetukset" 22 | 23 | #: extension/extension.js:67 extension/extension.js:148 24 | msgid "Privacy Settings" 25 | msgstr "Yksityisyysasetukset" 26 | 27 | #: extension/extension.js:73 extension/extension.js:170 28 | #: extension/extension.js:285 29 | msgid "Location" 30 | msgstr "Sijainti" 31 | 32 | #: extension/extension.js:74 extension/extension.js:171 33 | #: extension/extension.js:286 34 | msgid "Camera" 35 | msgstr "Kamera" 36 | 37 | #: extension/extension.js:75 extension/extension.js:172 38 | #: extension/extension.js:287 39 | msgid "Microphone" 40 | msgstr "Mikrofoni" 41 | 42 | #: extension/extension.js:102 43 | msgid "Reset settings" 44 | msgstr "Tyhjennä asetukset" 45 | 46 | #: extension/extension.js:104 47 | msgid "Reset to defaults" 48 | msgstr "Palauta oletukset" 49 | 50 | #: extension/extension.js:142 51 | msgid "Privacy" 52 | msgstr "Yksityisyys" 53 | 54 | #: extension/extension.js:214 55 | msgid "Extension Settings" 56 | msgstr "" 57 | 58 | #: extension/extension.js:259 59 | msgid "Private" 60 | msgstr "" 61 | 62 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 63 | #: extension/extension.js:266 64 | msgid " allowed" 65 | msgstr "" 66 | 67 | #: extension/prefs.js:129 68 | msgid "Settings" 69 | msgstr "Asetukset" 70 | 71 | #: extension/prefs.js:133 72 | msgid "General settings" 73 | msgstr "Yleiset asetukset" 74 | 75 | #: extension/prefs.js:134 76 | msgid "Menu settings" 77 | msgstr "" 78 | 79 | #: extension/prefs.js:139 80 | msgid "Move status icon right" 81 | msgstr "Siirrä tilakuvake oikealle" 82 | 83 | #: extension/prefs.js:139 84 | msgid "Force the icon to move to right side of the status area" 85 | msgstr "Pakota kuvake tilapalkin oikealle puolelle" 86 | 87 | #: extension/prefs.js:140 88 | msgid "Use quick settings menu" 89 | msgstr "Käytä pika-asetusvalikkoa" 90 | 91 | #: extension/prefs.js:140 92 | msgid "Use the system quick settings area, instead of an indicator" 93 | msgstr "Käytä järjestelmän pika-asetusvalikkoa tilakuvakkeen sijaan" 94 | 95 | #: extension/prefs.js:141 96 | msgid "Group quick settings" 97 | msgstr "Ryhmitä pika-asetukset" 98 | 99 | #: extension/prefs.js:141 100 | msgid "Group quick settings together, into a menu" 101 | msgstr "Ryhmitä pika-asetukset yhteen valikkoon" 102 | 103 | #: extension/prefs.js:142 104 | msgid "Use quick settings subtitle" 105 | msgstr "Käytä pika-asetuspainikkeen alaotsikkoa" 106 | 107 | #: extension/prefs.js:142 108 | msgid "Show the privacy status in the quick settings subtitle" 109 | msgstr "Näytä yksityisyystila pika-asetuksen painikkeen alaotsikossa" 110 | 111 | #: extension/prefs.js:143 112 | msgid "Toggle all settings at once" 113 | msgstr "" 114 | 115 | #: extension/prefs.js:143 116 | msgid "" 117 | "Enable or disable all privacy settings at once, when the group is pressed" 118 | msgstr "" 119 | 120 | #: extension/prefs.js:152 121 | msgid "Report an issue" 122 | msgstr "" 123 | 124 | #: extension/prefs.js:152 125 | msgid "GitHub issue tracker" 126 | msgstr "" 127 | 128 | #: extension/prefs.js:153 129 | msgid "Donate via GitHub" 130 | msgstr "" 131 | 132 | #: extension/prefs.js:153 133 | msgid "Become a sponsor" 134 | msgstr "" 135 | 136 | #: extension/prefs.js:154 137 | msgid "Donate via PayPal" 138 | msgstr "" 139 | 140 | #: extension/prefs.js:154 141 | msgid "Thanks for your support :)" 142 | msgstr "" 143 | 144 | #: extension/prefs.js:156 145 | msgid "Links" 146 | msgstr "" 147 | -------------------------------------------------------------------------------- /extension/po/it.po: -------------------------------------------------------------------------------- 1 | # Italian translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2021 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Albano Battistella , 2021,2022,2023,2024. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2024-02-13 23:00+0100\n" 12 | "Last-Translator: Albano Battistella \n" 13 | "Language-Team: Italian \n" 14 | "Language: it\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | 19 | #: extension/extension.js:42 20 | msgid "Privacy Settings Menu Indicator" 21 | msgstr "Indicatore del menu delle impostazioni sulla privacy" 22 | 23 | #: extension/extension.js:67 extension/extension.js:148 24 | msgid "Privacy Settings" 25 | msgstr "Impostazioni Privacy" 26 | 27 | #: extension/extension.js:73 extension/extension.js:170 28 | #: extension/extension.js:285 29 | msgid "Location" 30 | msgstr "Posizione" 31 | 32 | #: extension/extension.js:74 extension/extension.js:171 33 | #: extension/extension.js:286 34 | msgid "Camera" 35 | msgstr "Fotocamera" 36 | 37 | #: extension/extension.js:75 extension/extension.js:172 38 | #: extension/extension.js:287 39 | msgid "Microphone" 40 | msgstr "Microfono" 41 | 42 | #: extension/extension.js:102 43 | msgid "Reset settings" 44 | msgstr "Ripristina impostazioni" 45 | 46 | #: extension/extension.js:104 47 | msgid "Reset to defaults" 48 | msgstr "Ripristina le impostazioni predefinite" 49 | 50 | #: extension/extension.js:142 51 | msgid "Privacy" 52 | msgstr "Privacy" 53 | 54 | #: extension/extension.js:214 55 | msgid "Extension Settings" 56 | msgstr "" 57 | 58 | #: extension/extension.js:259 59 | msgid "Private" 60 | msgstr "Privato" 61 | 62 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 63 | #: extension/extension.js:266 64 | msgid " allowed" 65 | msgstr "Consentito" 66 | 67 | #: extension/prefs.js:129 68 | msgid "Settings" 69 | msgstr "Impostazioni" 70 | 71 | #: extension/prefs.js:133 72 | msgid "General settings" 73 | msgstr "Impostazioni generali" 74 | 75 | #: extension/prefs.js:134 76 | msgid "Menu settings" 77 | msgstr "Impostazioni del menù" 78 | 79 | #: extension/prefs.js:139 80 | msgid "Move status icon right" 81 | msgstr "Sposta l'icona di stato a destra" 82 | 83 | #: extension/prefs.js:139 84 | msgid "Force the icon to move to right side of the status area" 85 | msgstr "Forza lo spostamento dell'icona sul lato destro dell'area di stato" 86 | 87 | #: extension/prefs.js:140 88 | msgid "Use quick settings menu" 89 | msgstr "Usa il menu delle impostazioni rapide" 90 | 91 | #: extension/prefs.js:140 92 | msgid "Use the system quick settings area, instead of an indicator" 93 | msgstr "" 94 | "Utilizzare l'area delle impostazioni rapide del sistema, invece di un " 95 | "indicatore" 96 | 97 | #: extension/prefs.js:141 98 | msgid "Group quick settings" 99 | msgstr "Impostazioni rapide di gruppo" 100 | 101 | #: extension/prefs.js:141 102 | msgid "Group quick settings together, into a menu" 103 | msgstr "Raggruppa le impostazioni rapide in un menù" 104 | 105 | #: extension/prefs.js:142 106 | msgid "Use quick settings subtitle" 107 | msgstr "Usa i sottotitoli delle impostazioni rapide" 108 | 109 | #: extension/prefs.js:142 110 | msgid "Show the privacy status in the quick settings subtitle" 111 | msgstr "" 112 | "Mostra lo stato della privacy nel sottotitolo delle impostazioni rapide" 113 | 114 | #: extension/prefs.js:143 115 | msgid "Toggle all settings at once" 116 | msgstr "Attiva tutte le impostazioni contemporaneamente" 117 | 118 | #: extension/prefs.js:143 119 | msgid "" 120 | "Enable or disable all privacy settings at once, when the group is pressed" 121 | msgstr "" 122 | "Attiva o disattiva tutte le impostazioni sulla privacy contemporaneamente, " 123 | "quando si preme il gruppo" 124 | 125 | #: extension/prefs.js:152 126 | msgid "Report an issue" 127 | msgstr "Segnala un problema" 128 | 129 | #: extension/prefs.js:152 130 | msgid "GitHub issue tracker" 131 | msgstr "Tracciatore di problemi GitHub" 132 | 133 | #: extension/prefs.js:153 134 | msgid "Donate via GitHub" 135 | msgstr "Dona tramite GitHub" 136 | 137 | #: extension/prefs.js:153 138 | msgid "Become a sponsor" 139 | msgstr "Diventa uno sponsor" 140 | 141 | #: extension/prefs.js:154 142 | msgid "Donate via PayPal" 143 | msgstr "Dona tramite PayPal" 144 | 145 | #: extension/prefs.js:154 146 | msgid "Thanks for your support :)" 147 | msgstr "Grazie per il vostro sostegno :)" 148 | 149 | #: extension/prefs.js:156 150 | msgid "Links" 151 | msgstr "Link" 152 | -------------------------------------------------------------------------------- /extension/po/ja.po: -------------------------------------------------------------------------------- 1 | # translation for the Privacy Quick Settings GNOME Shell Extension. 2 | # Copyright (C) 2023 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Gnuey56 , 2023. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2024-02-14 17:44+0900\n" 12 | "Last-Translator: Gnuey56 \n" 13 | "Language-Team: Japanese <>\n" 14 | "Language: ja\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=1; plural=0;\n" 19 | "X-Generator: Poedit 3.4.2\n" 20 | 21 | #: extension/extension.js:42 22 | msgid "Privacy Settings Menu Indicator" 23 | msgstr "Privacy Settings Menu Indicator" 24 | 25 | #: extension/extension.js:67 extension/extension.js:148 26 | msgid "Privacy Settings" 27 | msgstr "プライバシー設定" 28 | 29 | #: extension/extension.js:73 extension/extension.js:170 30 | #: extension/extension.js:285 31 | msgid "Location" 32 | msgstr "位置情報" 33 | 34 | #: extension/extension.js:74 extension/extension.js:171 35 | #: extension/extension.js:286 36 | msgid "Camera" 37 | msgstr "カメラ" 38 | 39 | #: extension/extension.js:75 extension/extension.js:172 40 | #: extension/extension.js:287 41 | msgid "Microphone" 42 | msgstr "マイク" 43 | 44 | #: extension/extension.js:102 45 | msgid "Reset settings" 46 | msgstr "設定をリセット" 47 | 48 | #: extension/extension.js:104 49 | msgid "Reset to defaults" 50 | msgstr "デフォルトにリセット" 51 | 52 | #: extension/extension.js:142 53 | msgid "Privacy" 54 | msgstr "プライバシー" 55 | 56 | #: extension/extension.js:214 57 | msgid "Extension Settings" 58 | msgstr "" 59 | 60 | #: extension/extension.js:259 61 | msgid "Private" 62 | msgstr "許可した権限はなし" 63 | 64 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 65 | #: extension/extension.js:266 66 | msgid " allowed" 67 | msgstr "の権限を許可" 68 | 69 | #: extension/prefs.js:129 70 | msgid "Settings" 71 | msgstr "設定" 72 | 73 | #: extension/prefs.js:133 74 | msgid "General settings" 75 | msgstr "一般設定" 76 | 77 | #: extension/prefs.js:134 78 | msgid "Menu settings" 79 | msgstr "メニューの設定" 80 | 81 | #: extension/prefs.js:139 82 | msgid "Move status icon right" 83 | msgstr "ステータスアイコンを右に表示" 84 | 85 | #: extension/prefs.js:139 86 | msgid "Force the icon to move to right side of the status area" 87 | msgstr "右側のステータスエリアにアイコンを移動させます" 88 | 89 | #: extension/prefs.js:140 90 | msgid "Use quick settings menu" 91 | msgstr "クイックセッティングメニューを使用" 92 | 93 | #: extension/prefs.js:140 94 | msgid "Use the system quick settings area, instead of an indicator" 95 | msgstr "インジケーターの代わりに、システムのクイックセッティングを使用します" 96 | 97 | #: extension/prefs.js:141 98 | msgid "Group quick settings" 99 | msgstr "クイックセッティングをグループ化" 100 | 101 | #: extension/prefs.js:141 102 | msgid "Group quick settings together, into a menu" 103 | msgstr "クイックセッティングを一つのメニューにグループ化" 104 | 105 | #: extension/prefs.js:142 106 | msgid "Use quick settings subtitle" 107 | msgstr "クイックセッティングに説明を表示" 108 | 109 | #: extension/prefs.js:142 110 | msgid "Show the privacy status in the quick settings subtitle" 111 | msgstr "プライバシー設定のステータスをクイックセッティングの説明に表示" 112 | 113 | #: extension/prefs.js:143 114 | msgid "Toggle all settings at once" 115 | msgstr "すべての設定を一度で切り替える" 116 | 117 | #: extension/prefs.js:143 118 | msgid "" 119 | "Enable or disable all privacy settings at once, when the group is pressed" 120 | msgstr "" 121 | "クイックセッティングのグループがクリックされたとき、すべてのプライバシー設定" 122 | "を一度で有効化/無効化します" 123 | 124 | #: extension/prefs.js:152 125 | msgid "Report an issue" 126 | msgstr "問題を報告" 127 | 128 | #: extension/prefs.js:152 129 | msgid "GitHub issue tracker" 130 | msgstr "GitHubのイシュートラッカー" 131 | 132 | #: extension/prefs.js:153 133 | msgid "Donate via GitHub" 134 | msgstr "GitHubで寄付" 135 | 136 | #: extension/prefs.js:153 137 | msgid "Become a sponsor" 138 | msgstr "スポンサーになる" 139 | 140 | #: extension/prefs.js:154 141 | msgid "Donate via PayPal" 142 | msgstr "PayPalで寄付" 143 | 144 | #: extension/prefs.js:154 145 | msgid "Thanks for your support :)" 146 | msgstr "あなたの支援に感謝します :)" 147 | 148 | #: extension/prefs.js:156 149 | msgid "Links" 150 | msgstr "リンク" 151 | -------------------------------------------------------------------------------- /extension/po/nl.po: -------------------------------------------------------------------------------- 1 | # Dutch translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2021 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Heimen Stoffels , 2021. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2024-02-14 22:01+0100\n" 12 | "Last-Translator: Heimen Stoffels \n" 13 | "Language-Team: \n" 14 | "Language: nl\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n != 1);\n" 19 | "X-Generator: Poedit 3.4.2\n" 20 | 21 | #: extension/extension.js:42 22 | msgid "Privacy Settings Menu Indicator" 23 | msgstr "Privacyvoorkeuren-indicator" 24 | 25 | #: extension/extension.js:67 extension/extension.js:148 26 | msgid "Privacy Settings" 27 | msgstr "Privacyvoorkeuren" 28 | 29 | #: extension/extension.js:73 extension/extension.js:170 30 | #: extension/extension.js:285 31 | msgid "Location" 32 | msgstr "Locatie" 33 | 34 | #: extension/extension.js:74 extension/extension.js:171 35 | #: extension/extension.js:286 36 | msgid "Camera" 37 | msgstr "Camera" 38 | 39 | #: extension/extension.js:75 extension/extension.js:172 40 | #: extension/extension.js:287 41 | msgid "Microphone" 42 | msgstr "Microfoon" 43 | 44 | #: extension/extension.js:102 45 | msgid "Reset settings" 46 | msgstr "Standaardwaarden herstellen" 47 | 48 | #: extension/extension.js:104 49 | msgid "Reset to defaults" 50 | msgstr "Standaardwaarden" 51 | 52 | #: extension/extension.js:142 53 | msgid "Privacy" 54 | msgstr "Privacy" 55 | 56 | #: extension/extension.js:214 57 | msgid "Extension Settings" 58 | msgstr "" 59 | 60 | #: extension/extension.js:259 61 | msgid "Private" 62 | msgstr "Privé" 63 | 64 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 65 | #: extension/extension.js:266 66 | msgid " allowed" 67 | msgstr " toegestaan" 68 | 69 | #: extension/prefs.js:129 70 | msgid "Settings" 71 | msgstr "Voorkeuren" 72 | 73 | #: extension/prefs.js:133 74 | msgid "General settings" 75 | msgstr "Algemene voorkeuren" 76 | 77 | #: extension/prefs.js:134 78 | msgid "Menu settings" 79 | msgstr "Menuvoorkeuren" 80 | 81 | #: extension/prefs.js:139 82 | msgid "Move status icon right" 83 | msgstr "Systeemvakpictogram naar rechts verplaatsen" 84 | 85 | #: extension/prefs.js:139 86 | msgid "Force the icon to move to right side of the status area" 87 | msgstr "Verplaats het pictogram naar de rechterkant van het systeemvak" 88 | 89 | #: extension/prefs.js:140 90 | msgid "Use quick settings menu" 91 | msgstr "Toevoegen aan snelle voorkeuren" 92 | 93 | #: extension/prefs.js:140 94 | msgid "Use the system quick settings area, instead of an indicator" 95 | msgstr "" 96 | "Voeg de voorkeuren toe aan de snelle voorkeuren in plaats van aan een losse " 97 | "indicator" 98 | 99 | #: extension/prefs.js:141 100 | msgid "Group quick settings" 101 | msgstr "Snelle voorkeuren groeperen" 102 | 103 | #: extension/prefs.js:141 104 | msgid "Group quick settings together, into a menu" 105 | msgstr "Groepeer de snelle voorkeuren in een menu" 106 | 107 | #: extension/prefs.js:142 108 | msgid "Use quick settings subtitle" 109 | msgstr "Statussen tonen in snelle voorkeuren" 110 | 111 | #: extension/prefs.js:142 112 | msgid "Show the privacy status in the quick settings subtitle" 113 | msgstr "Toont de privacystatus in de snelle voorkeuren" 114 | 115 | #: extension/prefs.js:143 116 | msgid "Toggle all settings at once" 117 | msgstr "Alle voorkeuren tegelijk aan/uit" 118 | 119 | #: extension/prefs.js:143 120 | msgid "" 121 | "Enable or disable all privacy settings at once, when the group is pressed" 122 | msgstr "" 123 | "Schakel alle privacyvoorkeuren tegelijk in/uit door de groep aan te klikken" 124 | 125 | #: extension/prefs.js:152 126 | msgid "Report an issue" 127 | msgstr "Probleem melden" 128 | 129 | #: extension/prefs.js:152 130 | msgid "GitHub issue tracker" 131 | msgstr "GitHub-issuetracker" 132 | 133 | #: extension/prefs.js:153 134 | msgid "Donate via GitHub" 135 | msgstr "Doneren via GitHub" 136 | 137 | #: extension/prefs.js:153 138 | msgid "Become a sponsor" 139 | msgstr "Sponsor worden" 140 | 141 | #: extension/prefs.js:154 142 | msgid "Donate via PayPal" 143 | msgstr "Doneren via PayPal" 144 | 145 | #: extension/prefs.js:154 146 | msgid "Thanks for your support :)" 147 | msgstr "Bedankt voor uw ondersteuning. :)" 148 | 149 | #: extension/prefs.js:156 150 | msgid "Links" 151 | msgstr "Links" 152 | -------------------------------------------------------------------------------- /extension/po/pt_BR.po: -------------------------------------------------------------------------------- 1 | # translation for the Privacy Settings Menu GNOME Shell Extension. 2 | # Copyright (C) 2023 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Daimar Stein , 2023. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2023-08-29 02:39-0300\n" 12 | "Last-Translator: Daimar Stein \n" 13 | "Language-Team: \n" 14 | "Language: pt_BR\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=2; plural=(n==0 || n==1);\n" 19 | "X-Generator: Poedit 3.2.2\n" 20 | 21 | #: extension/extension.js:42 22 | msgid "Privacy Settings Menu Indicator" 23 | msgstr "Indicador do Menu de Configurações de Privacidade" 24 | 25 | #: extension/extension.js:67 extension/extension.js:148 26 | msgid "Privacy Settings" 27 | msgstr "Configurações de Privacidade" 28 | 29 | #: extension/extension.js:73 extension/extension.js:170 30 | #: extension/extension.js:285 31 | msgid "Location" 32 | msgstr "Localização" 33 | 34 | #: extension/extension.js:74 extension/extension.js:171 35 | #: extension/extension.js:286 36 | msgid "Camera" 37 | msgstr "Câmera" 38 | 39 | #: extension/extension.js:75 extension/extension.js:172 40 | #: extension/extension.js:287 41 | msgid "Microphone" 42 | msgstr "Microfone" 43 | 44 | #: extension/extension.js:102 45 | msgid "Reset settings" 46 | msgstr "Redefinir configurações" 47 | 48 | #: extension/extension.js:104 49 | msgid "Reset to defaults" 50 | msgstr "Retornar aos padrões" 51 | 52 | #: extension/extension.js:142 53 | msgid "Privacy" 54 | msgstr "Privacidade" 55 | 56 | #: extension/extension.js:214 57 | msgid "Extension Settings" 58 | msgstr "" 59 | 60 | #: extension/extension.js:259 61 | msgid "Private" 62 | msgstr "" 63 | 64 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 65 | #: extension/extension.js:266 66 | msgid " allowed" 67 | msgstr "" 68 | 69 | #: extension/prefs.js:129 70 | msgid "Settings" 71 | msgstr "Configurações" 72 | 73 | #: extension/prefs.js:133 74 | msgid "General settings" 75 | msgstr "Configurações gerais" 76 | 77 | #: extension/prefs.js:134 78 | msgid "Menu settings" 79 | msgstr "" 80 | 81 | #: extension/prefs.js:139 82 | msgid "Move status icon right" 83 | msgstr "Mover o icone de status à direita" 84 | 85 | #: extension/prefs.js:139 86 | msgid "Force the icon to move to right side of the status area" 87 | msgstr "Força o ícone a se mover para o lado direito da área de status" 88 | 89 | #: extension/prefs.js:140 90 | msgid "Use quick settings menu" 91 | msgstr "Usar o menu de configurações rápidas" 92 | 93 | #: extension/prefs.js:140 94 | msgid "Use the system quick settings area, instead of an indicator" 95 | msgstr "" 96 | "Use a área de configurações rápidas do sistema, ao invés de um indicador" 97 | 98 | #: extension/prefs.js:141 99 | msgid "Group quick settings" 100 | msgstr "Agrupar configurações rápidas" 101 | 102 | #: extension/prefs.js:141 103 | msgid "Group quick settings together, into a menu" 104 | msgstr "Agrupa as configurações rápidas em um menu" 105 | 106 | #: extension/prefs.js:142 107 | msgid "Use quick settings subtitle" 108 | msgstr "Usar o subtítulo das configurações rápidas" 109 | 110 | #: extension/prefs.js:142 111 | msgid "Show the privacy status in the quick settings subtitle" 112 | msgstr "Mostra o status de privacidade no subtítulo das configurações rápidas" 113 | 114 | #: extension/prefs.js:143 115 | msgid "Toggle all settings at once" 116 | msgstr "" 117 | 118 | #: extension/prefs.js:143 119 | msgid "" 120 | "Enable or disable all privacy settings at once, when the group is pressed" 121 | msgstr "" 122 | 123 | #: extension/prefs.js:152 124 | msgid "Report an issue" 125 | msgstr "" 126 | 127 | #: extension/prefs.js:152 128 | msgid "GitHub issue tracker" 129 | msgstr "" 130 | 131 | #: extension/prefs.js:153 132 | msgid "Donate via GitHub" 133 | msgstr "" 134 | 135 | #: extension/prefs.js:153 136 | msgid "Become a sponsor" 137 | msgstr "" 138 | 139 | #: extension/prefs.js:154 140 | msgid "Donate via PayPal" 141 | msgstr "" 142 | 143 | #: extension/prefs.js:154 144 | msgid "Thanks for your support :)" 145 | msgstr "" 146 | 147 | #: extension/prefs.js:156 148 | msgid "Links" 149 | msgstr "" 150 | -------------------------------------------------------------------------------- /extension/po/ru.po: -------------------------------------------------------------------------------- 1 | # translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2022 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Vyacheslav Kostromin , 2022. 5 | # Dmitry Maksimetny , 2024. 6 | # 7 | msgid "" 8 | msgstr "" 9 | "Project-Id-Version: privacy-menu-extension\n" 10 | "Report-Msgid-Bugs-To: \n" 11 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 12 | "PO-Revision-Date: 2024-01-11 20:00+0100\n" 13 | "Last-Translator: Dmitry Maksimetny \n" 14 | "Language-Team: \n" 15 | "Language: ru\n" 16 | "MIME-Version: 1.0\n" 17 | "Content-Type: text/plain; charset=UTF-8\n" 18 | "Content-Transfer-Encoding: 8bit\n" 19 | 20 | #: extension/extension.js:42 21 | msgid "Privacy Settings Menu Indicator" 22 | msgstr "Индикатор меню настроек конфиденциальности" 23 | 24 | #: extension/extension.js:67 extension/extension.js:148 25 | msgid "Privacy Settings" 26 | msgstr "Настройки конфиденциальности" 27 | 28 | #: extension/extension.js:73 extension/extension.js:170 29 | #: extension/extension.js:285 30 | msgid "Location" 31 | msgstr "Местоположение" 32 | 33 | #: extension/extension.js:74 extension/extension.js:171 34 | #: extension/extension.js:286 35 | msgid "Camera" 36 | msgstr "Камера" 37 | 38 | #: extension/extension.js:75 extension/extension.js:172 39 | #: extension/extension.js:287 40 | msgid "Microphone" 41 | msgstr "Микрофон" 42 | 43 | #: extension/extension.js:102 44 | msgid "Reset settings" 45 | msgstr "Сбросить настройки" 46 | 47 | #: extension/extension.js:104 48 | msgid "Reset to defaults" 49 | msgstr "Сбросить по умолчанию" 50 | 51 | #: extension/extension.js:142 52 | msgid "Privacy" 53 | msgstr "Конфиденциальность" 54 | 55 | #: extension/extension.js:214 56 | msgid "Extension Settings" 57 | msgstr "" 58 | 59 | #: extension/extension.js:259 60 | msgid "Private" 61 | msgstr "" 62 | 63 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 64 | #: extension/extension.js:266 65 | msgid " allowed" 66 | msgstr "" 67 | 68 | #: extension/prefs.js:129 69 | msgid "Settings" 70 | msgstr "Настройки" 71 | 72 | #: extension/prefs.js:133 73 | msgid "General settings" 74 | msgstr "Основные настройки" 75 | 76 | #: extension/prefs.js:134 77 | msgid "Menu settings" 78 | msgstr "" 79 | 80 | #: extension/prefs.js:139 81 | msgid "Move status icon right" 82 | msgstr "Переместить значок статуса вправо" 83 | 84 | #: extension/prefs.js:139 85 | msgid "Force the icon to move to right side of the status area" 86 | msgstr "Принудительно переместить значок вправо к области состояния" 87 | 88 | #: extension/prefs.js:140 89 | msgid "Use quick settings menu" 90 | msgstr "Использовать меню быстрых настроек" 91 | 92 | #: extension/prefs.js:140 93 | msgid "Use the system quick settings area, instead of an indicator" 94 | msgstr "Использовать меню быстрых настроек вместо индикатора" 95 | 96 | #: extension/prefs.js:141 97 | msgid "Group quick settings" 98 | msgstr "Группировать быстрые настройки" 99 | 100 | #: extension/prefs.js:141 101 | msgid "Group quick settings together, into a menu" 102 | msgstr "Объедините быстрые настройки в меню" 103 | 104 | #: extension/prefs.js:142 105 | msgid "Use quick settings subtitle" 106 | msgstr "Использовать подзаголовок группы быстрых настроек" 107 | 108 | #: extension/prefs.js:142 109 | msgid "Show the privacy status in the quick settings subtitle" 110 | msgstr "Показывать статус конфиденциальности в подзаголовке группы" 111 | 112 | #: extension/prefs.js:143 113 | msgid "Toggle all settings at once" 114 | msgstr "" 115 | 116 | #: extension/prefs.js:143 117 | msgid "" 118 | "Enable or disable all privacy settings at once, when the group is pressed" 119 | msgstr "" 120 | 121 | #: extension/prefs.js:152 122 | msgid "Report an issue" 123 | msgstr "Сообщить о проблеме" 124 | 125 | #: extension/prefs.js:152 126 | msgid "GitHub issue tracker" 127 | msgstr "Трекер проблем GitHub" 128 | 129 | #: extension/prefs.js:153 130 | msgid "Donate via GitHub" 131 | msgstr "Пожертвовать через GitHub" 132 | 133 | #: extension/prefs.js:153 134 | msgid "Become a sponsor" 135 | msgstr "Стать спонсором" 136 | 137 | #: extension/prefs.js:154 138 | msgid "Donate via PayPal" 139 | msgstr "Пожертвовать через PayPal" 140 | 141 | #: extension/prefs.js:154 142 | msgid "Thanks for your support :)" 143 | msgstr "Спасибо за вашу поддержку :)" 144 | 145 | #: extension/prefs.js:156 146 | msgid "Links" 147 | msgstr "" 148 | -------------------------------------------------------------------------------- /extension/po/sk.po: -------------------------------------------------------------------------------- 1 | # Slovak translation for the Privacy Quick Settings Menu GNOME Extension. 2 | # Copyright (C) 2021 Stuart Hayhurst 3 | # This file is distributed under the same license as the privacy-menu-extension package. 4 | # Jozef Gaal , 2024. 5 | # 6 | msgid "" 7 | msgstr "" 8 | "Project-Id-Version: privacy-menu-extension\n" 9 | "Report-Msgid-Bugs-To: \n" 10 | "POT-Creation-Date: 2025-01-12 23:23+0000\n" 11 | "PO-Revision-Date: 2024-07-06 17:25+0200\n" 12 | "Last-Translator: Jozef Gaal \n" 13 | "Language-Team: Jozef Gaál \n" 14 | "Language: sk_SK\n" 15 | "MIME-Version: 1.0\n" 16 | "Content-Type: text/plain; charset=UTF-8\n" 17 | "Content-Transfer-Encoding: 8bit\n" 18 | "Plural-Forms: nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);\n" 19 | "X-Generator: Poedit 3.4.2\n" 20 | 21 | #: extension/extension.js:42 22 | msgid "Privacy Settings Menu Indicator" 23 | msgstr "Indikátor ponuky nastavenia súkromia" 24 | 25 | #: extension/extension.js:67 extension/extension.js:148 26 | msgid "Privacy Settings" 27 | msgstr "Nastavenia súkromia" 28 | 29 | #: extension/extension.js:73 extension/extension.js:170 30 | #: extension/extension.js:285 31 | msgid "Location" 32 | msgstr "Poloha" 33 | 34 | #: extension/extension.js:74 extension/extension.js:171 35 | #: extension/extension.js:286 36 | msgid "Camera" 37 | msgstr "Kamera" 38 | 39 | #: extension/extension.js:75 extension/extension.js:172 40 | #: extension/extension.js:287 41 | msgid "Microphone" 42 | msgstr "Mikrofón" 43 | 44 | #: extension/extension.js:102 45 | msgid "Reset settings" 46 | msgstr "Obnoviť nastavenia" 47 | 48 | #: extension/extension.js:104 49 | msgid "Reset to defaults" 50 | msgstr "Obnoviť predvolené nastavenia" 51 | 52 | #: extension/extension.js:142 53 | msgid "Privacy" 54 | msgstr "Súkromie" 55 | 56 | #: extension/extension.js:214 57 | msgid "Extension Settings" 58 | msgstr "" 59 | 60 | #: extension/extension.js:259 61 | msgid "Private" 62 | msgstr "Súkromné" 63 | 64 | #. Translators: this displays how many settings are enabled, e.g. '1 allowed' 65 | #: extension/extension.js:266 66 | msgid " allowed" 67 | msgstr " povolené" 68 | 69 | #: extension/prefs.js:129 70 | msgid "Settings" 71 | msgstr "Nastavenia" 72 | 73 | #: extension/prefs.js:133 74 | msgid "General settings" 75 | msgstr "Všeobecné nastavenia" 76 | 77 | #: extension/prefs.js:134 78 | msgid "Menu settings" 79 | msgstr "Nastavenia ponuky" 80 | 81 | #: extension/prefs.js:139 82 | msgid "Move status icon right" 83 | msgstr "Presunúť ikonu stavu doprava" 84 | 85 | #: extension/prefs.js:139 86 | msgid "Force the icon to move to right side of the status area" 87 | msgstr "Vynútiť presun ikony na pravú stranu stavovej oblasti" 88 | 89 | #: extension/prefs.js:140 90 | msgid "Use quick settings menu" 91 | msgstr "Použiť ponuku rýchlych nastavení" 92 | 93 | #: extension/prefs.js:140 94 | msgid "Use the system quick settings area, instead of an indicator" 95 | msgstr "Použiť oblasť rýchlych nastavení systému namiesto indikátora" 96 | 97 | #: extension/prefs.js:141 98 | msgid "Group quick settings" 99 | msgstr "Rýchle nastavenia skupiny" 100 | 101 | #: extension/prefs.js:141 102 | msgid "Group quick settings together, into a menu" 103 | msgstr "Zoskupiť rýchle nastavenia do ponuky" 104 | 105 | #: extension/prefs.js:142 106 | msgid "Use quick settings subtitle" 107 | msgstr "Použiť titulky rýchlych nastavení" 108 | 109 | #: extension/prefs.js:142 110 | msgid "Show the privacy status in the quick settings subtitle" 111 | msgstr "Zobraziť stav ochrany osobných údajov v rýchlom nastavení titulku" 112 | 113 | #: extension/prefs.js:143 114 | msgid "Toggle all settings at once" 115 | msgstr "Prepnutie všetkých nastavení naraz" 116 | 117 | #: extension/prefs.js:143 118 | msgid "" 119 | "Enable or disable all privacy settings at once, when the group is pressed" 120 | msgstr "" 121 | "Povoliť alebo zakázať všetky nastavenia súkromia naraz, keď sa stlačí skupina" 122 | 123 | #: extension/prefs.js:152 124 | msgid "Report an issue" 125 | msgstr "Nahlásiť problém" 126 | 127 | #: extension/prefs.js:152 128 | msgid "GitHub issue tracker" 129 | msgstr "Sledovanie problémov v službe GitHub" 130 | 131 | #: extension/prefs.js:153 132 | msgid "Donate via GitHub" 133 | msgstr "Darujte cez GitHub" 134 | 135 | #: extension/prefs.js:153 136 | msgid "Become a sponsor" 137 | msgstr "Staňte sa sponzorom" 138 | 139 | #: extension/prefs.js:154 140 | msgid "Donate via PayPal" 141 | msgstr "Darujte cez PayPal" 142 | 143 | #: extension/prefs.js:154 144 | msgid "Thanks for your support :)" 145 | msgstr "Ďakujeme za vašu podporu :)" 146 | 147 | #: extension/prefs.js:156 148 | msgid "Links" 149 | msgstr "Odkazy" 150 | -------------------------------------------------------------------------------- /extension/prefs.js: -------------------------------------------------------------------------------- 1 | //Main imports 2 | import Gio from 'gi://Gio'; 3 | import Gtk from 'gi://Gtk'; 4 | import Adw from 'gi://Adw'; 5 | import GObject from 'gi://GObject'; 6 | 7 | //Extension system imports 8 | import {ExtensionPreferences, gettext as _} from 'resource:///org/gnome/Shell/Extensions/js/extensions/prefs.js'; 9 | 10 | var PrefsPage = GObject.registerClass( 11 | class PrefsPage extends Adw.PreferencesPage { 12 | _init(pageInfo, groupsInfo, settingsInfo, settings) { 13 | super._init({ 14 | title: pageInfo[0], 15 | icon_name: pageInfo[1] 16 | }); 17 | 18 | this._extensionSettings = settings; 19 | this._settingGroups = {}; 20 | this._settingRows = {}; 21 | 22 | //Setup settings 23 | this._createGroups(groupsInfo); 24 | this._createSettings(settingsInfo); 25 | 26 | //Disable unavailable settings 27 | this._settingsChangedSignal = this._extensionSettings.connect('changed', () => { 28 | this._updateEnabledSettings(); 29 | }); 30 | this._updateEnabledSettings(); 31 | } 32 | 33 | _createGroups(groupsInfo) { 34 | //Store groups, set title and add to window 35 | groupsInfo.forEach((groupInfo) => { 36 | this._settingGroups[groupInfo[0]] = new Adw.PreferencesGroup(); 37 | this._settingGroups[groupInfo[0]].set_title(groupInfo[1]); 38 | this.add(this._settingGroups[groupInfo[0]]); 39 | }); 40 | } 41 | 42 | _createSettings(settingsInfo) { 43 | settingsInfo.forEach(settingInfo => { 44 | //Check the target group exists 45 | if (!(settingInfo[0] in this._settingGroups)) { 46 | return; 47 | } 48 | 49 | //Create a row with a switch, title and subtitle 50 | let settingRow = new Adw.SwitchRow({ 51 | title: settingInfo[2], 52 | subtitle: settingInfo[3] 53 | }); 54 | 55 | //Connect the switch to the setting 56 | this._extensionSettings.bind( 57 | settingInfo[1], //GSettings key to bind to 58 | settingRow, //Object to bind to 59 | 'active', //The property to share 60 | Gio.SettingsBindFlags.DEFAULT 61 | ); 62 | 63 | //Add the row to the group, and save for later 64 | this._settingGroups[settingInfo[0]].add(settingRow); 65 | this._settingRows[settingInfo[1]] = settingRow; 66 | }); 67 | } 68 | 69 | addLinks(window, linksInfo, groupName) { 70 | //Setup and add links group to window 71 | let linksGroup = new Adw.PreferencesGroup(); 72 | linksGroup.set_title(groupName); 73 | this.add(linksGroup); 74 | 75 | linksInfo.forEach((linkInfo) => { 76 | //Create a row for the link widget 77 | let linkEntryRow = new Adw.ActionRow({ 78 | title: linkInfo[0], 79 | subtitle: linkInfo[1], 80 | activatable: true 81 | }); 82 | 83 | //Open the link when clicked 84 | linkEntryRow.connect('activated', () => { 85 | let uriLauncher = new Gtk.UriLauncher(); 86 | uriLauncher.set_uri(linkInfo[2]); 87 | uriLauncher.launch(window, null, null); 88 | }); 89 | 90 | linksGroup.add(linkEntryRow); 91 | }); 92 | } 93 | 94 | _updateEnabledSettings() { 95 | /* 96 | - If quick settings are enabled, disable 'move-icon-setting' option 97 | - If quick settings grouping is disabled, disable 'use-quick-subtitle' option 98 | */ 99 | 100 | let moveIconRow = this._settingRows['move-icon-right']; 101 | let groupQuickSettingsRow = this._settingRows['group-quick-settings']; 102 | let quickSubtitleSettingsRow = this._settingRows['use-quick-subtitle']; 103 | let clickToggleRow = this._settingRows['click-to-toggle']; 104 | 105 | if (this._extensionSettings.get_boolean('use-quick-settings')) { 106 | moveIconRow.set_sensitive(false); 107 | groupQuickSettingsRow.set_sensitive(true); 108 | 109 | if (!this._extensionSettings.get_boolean('group-quick-settings')) { 110 | quickSubtitleSettingsRow.set_sensitive(false); 111 | clickToggleRow.set_sensitive(false); 112 | } else { 113 | quickSubtitleSettingsRow.set_sensitive(true); 114 | clickToggleRow.set_sensitive(true); 115 | } 116 | } else { 117 | moveIconRow.set_sensitive(true); 118 | groupQuickSettingsRow.set_sensitive(false); 119 | quickSubtitleSettingsRow.set_sensitive(false); 120 | clickToggleRow.set_sensitive(false); 121 | } 122 | } 123 | }); 124 | 125 | export default class PrivacyQuickSettingsPrefs extends ExtensionPreferences { 126 | //Create preferences window with libadwaita 127 | fillPreferencesWindow(window) { 128 | //Translated title, icon name 129 | let pageInfo = [_('Settings'), 'preferences-system-symbolic']; 130 | 131 | let groupsInfo = [ 132 | //Group ID, translated title 133 | ['general', _('General settings')], 134 | ['menu', _('Menu settings')] 135 | ]; 136 | 137 | let settingsInfo = [ 138 | //Group ID, setting key, title, subtitle 139 | ['general', 'move-icon-right', _('Move status icon right'), _('Force the icon to move to right side of the status area')], 140 | ['menu', 'use-quick-settings', _('Use quick settings menu'), _('Use the system quick settings area, instead of an indicator')], 141 | ['menu', 'group-quick-settings', _('Group quick settings'), _('Group quick settings together, into a menu')], 142 | ['menu', 'use-quick-subtitle', _('Use quick settings subtitle'), _('Show the privacy status in the quick settings subtitle')], 143 | ['menu', 'click-to-toggle', _('Toggle all settings at once'), _('Enable or disable all privacy settings at once, when the group is pressed')] 144 | ]; 145 | 146 | //Create settings page from info 147 | let settingsPage = new PrefsPage(pageInfo, groupsInfo, settingsInfo, this.getSettings()); 148 | 149 | //Define and add links 150 | let linksInfo = [ 151 | //Translated title, link 152 | [_('Report an issue'), _('GitHub issue tracker'), 'https://github.com/stuarthayhurst/privacy-menu-extension/issues'], 153 | [_('Donate via GitHub'), _('Become a sponsor'), 'https://github.com/sponsors/stuarthayhurst'], 154 | [_('Donate via PayPal'), _('Thanks for your support :)'), 'https://www.paypal.me/stuartahayhurst'] 155 | ]; 156 | settingsPage.addLinks(window, linksInfo, _("Links")); 157 | 158 | //Add the pages to the window, enable searching 159 | window.add(settingsPage); 160 | window.set_search_enabled(true); 161 | } 162 | } 163 | -------------------------------------------------------------------------------- /extension/schemas/org.gnome.shell.extensions.PrivacyMenu.gschema.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | true 6 | Move status icon right 7 | Force the icon to move to right side of the status area 8 | 9 | 10 | true 11 | Use quick settings menu 12 | Use the system quick settings area, instead of an indicator 13 | 14 | 15 | true 16 | Group quick settings 17 | Group quick settings together, into a menu 18 | 19 | 20 | true 21 | Use quick settings subtitle 22 | Show the privacy status in the quick settings subtitle 23 | 24 | 25 | false 26 | Toggle all settings at once 27 | Enable or disable all privacy settings at once, when the group is pressed 28 | 29 | 30 | 31 | -------------------------------------------------------------------------------- /scripts/check-characters.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | patterns=("*.js" "*.sh" Makefile) 4 | 5 | #Fail if any tracked file matching the patterns has a non-ASCII character 6 | failed=false; 7 | for file in $(git ls-files "${patterns[@]}"); do 8 | if [[ $(cat "$file") = *[![:ascii:]]* ]]; then 9 | failed="true" 10 | echo "$file contains non-ASCII characters" 11 | fi 12 | done 13 | 14 | if [[ "$failed" == "true" ]]; then 15 | exit 1 16 | fi 17 | -------------------------------------------------------------------------------- /scripts/update-po.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #This script generates the latest '.po' file(s) from the source 3 | #Usage: 'update-po.sh -l ', use '-a' to update all '.po' files 4 | 5 | #Create a new translation from 'build/messages.pot' 6 | promptNewTranslation() { 7 | if [[ -n "$1" ]]; then 8 | echo -n "The translation for '$1' does not exist, do you want to create it? [Y/n] " 9 | read -r reply 10 | 11 | if [[ "$reply" = "Y" ]] || [[ "$reply" = "y" ]]; then 12 | msginit --input="../$BUILD_DIR/messages.pot" --locale="$1" --output-file="po/$1.po" 13 | #Add copyright info 14 | sed -i "2s/.*/# Copyright (C) $(date +%Y) Stuart Hayhurst/" "po/$1.po" 15 | fi 16 | fi 17 | } 18 | 19 | #Update translation file $1 20 | updateTranslation() { 21 | echo -n "Updating '$1': " 22 | msgmerge --no-fuzzy-matching --previous -U --quiet "$1" "../$BUILD_DIR/messages.pot" 23 | msgfmt --check --verbose --output-file=/dev/null "$1" 24 | } 25 | 26 | #Change to repository root and exit on failure 27 | set -e 28 | cd "$( cd "$( dirname "$0" )" && pwd )/.." || exit 1 29 | 30 | #Set build directory if missing, and create it 31 | if [[ "$BUILD_DIR" == "" ]]; then 32 | BUILD_DIR="build" 33 | fi 34 | mkdir -p "$BUILD_DIR" 35 | 36 | #Generate pot file and swap to extension source dir 37 | ./scripts/update-pot.sh 38 | cd "extension" || exit 1 39 | 40 | if [[ "$1" == "-l" ]]; then #Update / create one specific '.po' file 41 | #Check if a valid language code was given 42 | if [[ -f "po/$2.po" ]]; then 43 | updateTranslation "po/$2.po" 44 | else 45 | promptNewTranslation "$2" 46 | fi 47 | elif [[ "$1" == "-a" ]]; then #Update all '.po' files 48 | for file in po/*.po; do 49 | #Handle no .po files 50 | [[ -e "$file" ]] || { echo -e "\nERROR: No .po files found"; exit 1; } 51 | updateTranslation "$file" 52 | done 53 | else 54 | echo "ERROR: You need to specify a flag"; exit 1 55 | fi 56 | -------------------------------------------------------------------------------- /scripts/update-pot.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | #This script scans the source code for any translatable strings and create the build/messages.pot 3 | 4 | #Change to repository root and exit on failure 5 | set -e 6 | cd "$( cd "$( dirname "$0" )" && pwd )/.." || exit 1 7 | 8 | #Set build directory if missing, and create it 9 | if [[ "$BUILD_DIR" == "" ]]; then 10 | BUILD_DIR="build" 11 | fi 12 | mkdir -p "$BUILD_DIR" 13 | 14 | #Update the template file with the strings from the source files 15 | xgettext --from-code=UTF-8 \ 16 | --add-comments=Translators \ 17 | --copyright-holder="Stuart Hayhurst" \ 18 | --package-name="privacy-menu-extension" \ 19 | --output="$BUILD_DIR/messages.pot" \ 20 | -- extension/*.js 21 | 22 | #Replace some lines of the header with our own 23 | sed -i '1s/.*/# translation for the Privacy Quick Settings GNOME Shell Extension./' "$BUILD_DIR/messages.pot" 24 | sed -i "2s/.*/# Copyright (C) $(date +%Y) Stuart Hayhurst/" "$BUILD_DIR/messages.pot" 25 | sed -i '17s/CHARSET/UTF-8/' "$BUILD_DIR/messages.pot" 26 | 27 | echo "Generated translation list" 28 | --------------------------------------------------------------------------------