Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
Aegisub
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Déploiement
Releases
Registre de paquets
Registre de conteneurs
Registre de modèles
Opération
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Ce projet est archivé. Le dépôt et les autres ressources du projet sont en lecture seule.
Afficher davantage de fils d'Ariane
Kubat
Aegisub
Validations
cbff449f
Valider
cbff449f
rédigé
22 oct. 2013
par
Thomas Goyne
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
Put config files in the right place on OS X
parent
eeb574b1
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
aegisub/libaegisub/include/libaegisub/util_osx.h
+2
-0
2 ajouts, 0 suppression
aegisub/libaegisub/include/libaegisub/util_osx.h
aegisub/libaegisub/osx/util.mm
+6
-0
6 ajouts, 0 suppression
aegisub/libaegisub/osx/util.mm
aegisub/libaegisub/unix/path.cpp
+9
-9
9 ajouts, 9 suppressions
aegisub/libaegisub/unix/path.cpp
avec
17 ajouts
et
9 suppressions
aegisub/libaegisub/include/libaegisub/util_osx.h
+
2
−
0
Voir le fichier @
cbff449f
...
...
@@ -93,6 +93,8 @@ std::string OSX_GetBundleExecutablePath();
/// Pass the basename of the executable to get the path.
std
::
string
OSX_GetBundleAuxillaryExecutablePath
(
std
::
string
const
&
executableName
);
std
::
string
OSX_GetApplicationSupportDirectory
();
/// @brief Open a URI using the Launcher.
/// @param location URI of file
/// @note If this is a FILE or DIRECTORY the path must be ABSOLUTE no 'file://'
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
aegisub/libaegisub/osx/util.mm
+
6
−
0
Voir le fichier @
cbff449f
...
...
@@ -95,6 +95,12 @@ std::string OSX_GetBundleAuxillaryExecutablePath(std::string const& executableNa
}
}
std
::
string
OSX_GetApplicationSupportDirectory
()
{
@autoreleasepool
{
return
EmptyIfNil
([
NSSearchPathForDirectoriesInDomains
(
NSApplicationSupportDirectory
,
NSUserDomainMask
,
YES
)
firstObject
]);
}
}
void
OSX_OpenLocation
(
std
::
string
const
&
location
)
{
@autoreleasepool
{
NSURL
*
url
=
[
NSURL
fileURLWithPath
:[
NSString
stringWithUTF8String
:
location
.
c_str
()]];
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
aegisub/libaegisub/unix/path.cpp
+
9
−
9
Voir le fichier @
cbff449f
...
...
@@ -22,6 +22,7 @@
#include
<pwd.h>
namespace
{
#ifndef __APPLE__
std
::
string
home_dir
()
{
const
char
*
env
=
getenv
(
"HOME"
);
if
(
env
)
return
env
;
...
...
@@ -33,24 +34,23 @@ std::string home_dir() {
throw
agi
::
EnvironmentError
(
"Could not get home directory. Make sure HOME is set."
);
}
std
::
string
data_dir
()
{
#ifndef __APPLE__
return
P_DATA
;
#else
return
agi
::
util
::
OSX_GetBundleSharedSupportDirectory
();
#endif
}
}
namespace
agi
{
void
Path
::
FillPlatformSpecificPaths
()
{
#ifndef __APPLE__
agi
::
fs
::
path
home
=
home_dir
();
SetToken
(
"?user"
,
home
/
".aegisub"
);
SetToken
(
"?local"
,
home
/
".aegisub"
);
SetToken
(
"?data"
,
data_dir
());
SetToken
(
"?data"
,
P_DATA
);
#else
agi
::
fs
::
path
app_support
=
agi
::
util
::
OSX_GetApplicationSupportDirectory
();
SetToken
(
"?user"
,
app_support
/
"Aegisub"
);
SetToken
(
"?local"
,
app_support
/
"Aegisub"
);
SetToken
(
"?data"
,
agi
::
util
::
OSX_GetBundleSharedSupportDirectory
());
#endif
SetToken
(
"?temp"
,
boost
::
filesystem
::
temp_directory_path
());
SetToken
(
"?dictionary"
,
"/usr/share/hunspell"
);
SetToken
(
"?docs"
,
P_DOC
);
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter