mirror of
https://github.com/PlayCover/PlayCover.git
synced 2026-04-26 00:05:52 +03:00
[PR #1087] [MERGED] Set Application Category Type #1812
Labels
No labels
UI
app-support
bug
bug
documentation
duplicate
enhancement
game-support
good first issue
help wanted / caution
inactive
invalid
macos-beta
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PlayCover#1812
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/PlayCover/PlayCover/pull/1087
Author: @TheMoonThatRises
Created: 9/8/2023
Status: ✅ Merged
Merged: 9/25/2023
Merged by: @JoseMoreville
Base:
develop← Head:feat/customapptype📝 Commits (1)
6a350aafeat: allow user to set app category type📊 Changes
5 files changed (+112 additions, -8 deletions)
View changed files
📝
PlayCover/AppInstaller/Installer.swift(+3 -0)📝
PlayCover/Model/AppInfo.swift(+49 -0)📝
PlayCover/Views/AppSettingsView.swift(+34 -1)📝
PlayCover/Views/Settings/InstallSettings.swift(+25 -7)📝
PlayCover/en.lproj/Localizable.strings(+1 -0)📄 Description
This allows the user to set the category of the app by adding the key
LSApplicationCategoryTypeto theInfo.plistlocated in the application. This can be changed under Misc in the application's settings.More specifically, this feature enables and closes #1085 "Game Mode", which can be accomplished by the user setting the application type to
public.app-category.gamesfor those on MacOS Sonoma.This change is tested on MacOS Sonoma Developer Beta 23A5337a. This should not affect the changes, but should still be tested on a stable version of MacOS.
Other Notes for reviewers:
LSApplicationCategoryTypebe localised? Currently, the code is implemented but was too time consuming to implement it in the localisation files.sheetor something similar to accommodate for the user to specify the application category type on installation? The setting has been implemented to set all the installing types to the specified value but per installation type setting would be require some major refactoring.Info.plistdoes not initially have the keyLSApplicationCategoryType, it would have to be located elsewhere as iOS apps still have the application category types. I will look into that but since it is not already implemented, I am not too sure it will work.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.