Rebranded to Kino. It now called "Kino" instead of "Media Player"
This commit is contained in:
parent
2cb52dcf90
commit
20616c4fa6
9
Makefile
9
Makefile
@ -13,7 +13,7 @@ SRCS = $(SRC_DIR)/main.c \
|
||||
$(SRC_DIR)/plugin_manager.c
|
||||
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
TARGET = gtk2-mpv-player
|
||||
TARGET = Kino
|
||||
|
||||
# Find libmpv path dynamically
|
||||
LDCONFIG = $(shell command -v ldconfig || command -v /sbin/ldconfig || command -v /usr/sbin/ldconfig)
|
||||
@ -53,9 +53,10 @@ install: all
|
||||
sudo ./install.sh
|
||||
|
||||
uninstall:
|
||||
sudo rm -rf /usr/local/lib/gtk2-mpv-player
|
||||
sudo rm -f /usr/local/bin/gtk2-mpv-player
|
||||
sudo rm -f /usr/share/applications/gtk2-mpv-player.desktop
|
||||
sudo rm -rf /usr/local/lib/Kino
|
||||
sudo rm -f /usr/local/bin/kino
|
||||
sudo rm -f /usr/bin/kino
|
||||
sudo rm -f /usr/share/applications/kino.desktop
|
||||
update-desktop-database
|
||||
|
||||
run: $(TARGET)
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
[Desktop Entry]
|
||||
Name=Media Player
|
||||
Name=Kino
|
||||
Comment=A lightweight GTK2 frontend for MPV
|
||||
Exec=/usr/local/bin/gtk2-mpv-player %U
|
||||
Icon=/usr/local/lib/gtk2-mpv-player/icon.png
|
||||
Exec=/usr/local/bin/kino %U
|
||||
Icon=/usr/local/lib/Kino/icon.png
|
||||
Terminal=false
|
||||
Type=Application
|
||||
Categories=AudioVideo;Video;Player;GTK;
|
||||
MimeType=video/mp4;video/x-matroska;video/webm;video/x-msvideo;video/quicktime;audio/mpeg;audio/x-wav;audio/ogg;audio/flac;
|
||||
Keywords=Video;Audio;Player;Media;mpv;
|
||||
Keywords=Video;Audio;Player;Media;mpv;Kino;
|
||||
StartupNotify=true
|
||||
GenericName=Media Player
|
||||
22
install.sh
22
install.sh
@ -1,16 +1,16 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Simple installation script for GTK2 MPV Player
|
||||
# Simple installation script for Kino
|
||||
|
||||
if [ "$EUID" -ne 0 ]; then
|
||||
echo "Please run as root (use sudo)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
INSTALL_DIR="/usr/local/lib/gtk2-mpv-player"
|
||||
BIN_LINK="/usr/bin/gtk2-mpv-player"
|
||||
BIN_LINK_LOCAL="/usr/local/bin/gtk2-mpv-player"
|
||||
DESKTOP_FILE="/usr/share/applications/gtk2-mpv-player.desktop"
|
||||
INSTALL_DIR="/usr/local/lib/Kino"
|
||||
BIN_LINK="/usr/bin/kino"
|
||||
BIN_LINK_LOCAL="/usr/local/bin/kino"
|
||||
DESKTOP_FILE="/usr/share/applications/kino.desktop"
|
||||
|
||||
echo "Installing to $INSTALL_DIR..."
|
||||
|
||||
@ -18,7 +18,7 @@ echo "Installing to $INSTALL_DIR..."
|
||||
mkdir -p "$INSTALL_DIR"
|
||||
|
||||
# Copy binary and metadata using 'install' to handle running processes correctly
|
||||
install -m 755 gtk2-mpv-player "$INSTALL_DIR/"
|
||||
install -m 755 Kino "$INSTALL_DIR/"
|
||||
install -m 644 assets/icon.png "$INSTALL_DIR/"
|
||||
|
||||
# For directory copy, we use cp but remove destination first to ensure clean update
|
||||
@ -29,20 +29,20 @@ cp -r lib "$INSTALL_DIR/"
|
||||
cat <<EOF > "$BIN_LINK"
|
||||
#!/bin/bash
|
||||
cd "$INSTALL_DIR"
|
||||
./gtk2-mpv-player "\$@"
|
||||
./Kino "\$@"
|
||||
EOF
|
||||
|
||||
cp "$BIN_LINK" "$BIN_LINK_LOCAL"
|
||||
chmod +x "$BIN_LINK" "$BIN_LINK_LOCAL"
|
||||
|
||||
# Install desktop file
|
||||
cp assets/gtk2-mpv-player.desktop "$DESKTOP_FILE"
|
||||
# Update path in desktop file if needed (already set to /usr/local/bin/gtk2-mpv-player)
|
||||
cp assets/kino.desktop "$DESKTOP_FILE"
|
||||
# Update path in desktop file if needed
|
||||
|
||||
# Update MIME database
|
||||
echo "Updating MIME database..."
|
||||
update-desktop-database
|
||||
|
||||
echo "Installation complete!"
|
||||
echo "Installed version timestamp: $(date -r "$INSTALL_DIR/gtk2-mpv-player")"
|
||||
echo "You can now run 'gtk2-mpv-player' or find it in your application menu."
|
||||
echo "Installed version timestamp: $(date -r "$INSTALL_DIR/Kino")"
|
||||
echo "You can now run 'kino' or find it in your application menu."
|
||||
|
||||
@ -295,7 +295,7 @@ char* dialogs_save_screenshot(GtkWindow *parent)
|
||||
|
||||
void dialogs_show_about(GtkWindow *parent)
|
||||
{
|
||||
GtkWidget *dialog = gtk_dialog_new_with_buttons("About GTK2 Media Player",
|
||||
GtkWidget *dialog = gtk_dialog_new_with_buttons("About Kino",
|
||||
parent,
|
||||
GTK_DIALOG_MODAL | GTK_DIALOG_DESTROY_WITH_PARENT,
|
||||
GTK_STOCK_CLOSE, GTK_RESPONSE_CLOSE,
|
||||
@ -323,13 +323,13 @@ void dialogs_show_about(GtkWindow *parent)
|
||||
}
|
||||
|
||||
GtkWidget *title_label = gtk_label_new(NULL);
|
||||
gtk_label_set_markup(GTK_LABEL(title_label), "<span size='xx-large' weight='bold'>GTK2 Media Player</span>");
|
||||
gtk_label_set_markup(GTK_LABEL(title_label), "<span size='xx-large' weight='bold'>Kino</span>");
|
||||
gtk_box_pack_start(GTK_BOX(about_vbox), title_label, FALSE, FALSE, 0);
|
||||
|
||||
GtkWidget *version_label = gtk_label_new("Version 9.0");
|
||||
gtk_box_pack_start(GTK_BOX(about_vbox), version_label, FALSE, FALSE, 0);
|
||||
|
||||
GtkWidget *comment_label = gtk_label_new("A lightweight GTK2 media player frontend using libmpv.");
|
||||
GtkWidget *comment_label = gtk_label_new("A lightweight GTK2 media player frontend (Kino) using libmpv.");
|
||||
gtk_label_set_line_wrap(GTK_LABEL(comment_label), TRUE);
|
||||
gtk_box_pack_start(GTK_BOX(about_vbox), comment_label, FALSE, FALSE, 10);
|
||||
|
||||
|
||||
@ -99,7 +99,7 @@ int main(int argc, char *argv[])
|
||||
return 0;
|
||||
}
|
||||
if (strcmp(argv[i], "--version") == 0 || strcmp(argv[i], "-v") == 0) {
|
||||
printf("Media Player v9.0\n");
|
||||
printf("Kino v9.0\n");
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -155,7 +155,7 @@ static GVariant *handle_get_property(GDBusConnection *connection,
|
||||
if (g_strcmp0(property_name, "CanQuit") == 0) return g_variant_new_boolean(TRUE);
|
||||
if (g_strcmp0(property_name, "CanRaise") == 0) return g_variant_new_boolean(TRUE);
|
||||
if (g_strcmp0(property_name, "HasTrackList") == 0) return g_variant_new_boolean(FALSE);
|
||||
if (g_strcmp0(property_name, "Identity") == 0) return g_variant_new_string("Media Player");
|
||||
if (g_strcmp0(property_name, "Identity") == 0) return g_variant_new_string("Kino");
|
||||
if (g_strcmp0(property_name, "SupportedUriSchemes") == 0) {
|
||||
const gchar *schemes[] = {"file", "http", "https", "rtsp", "rtmp", "mms", NULL};
|
||||
return g_variant_new_strv(schemes, -1);
|
||||
|
||||
10
src/ui.c
10
src/ui.c
@ -187,7 +187,7 @@ AppUI* ui_new(void)
|
||||
|
||||
/* Main window */
|
||||
ui->window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
|
||||
gtk_window_set_title(GTK_WINDOW(ui->window), "Media Player");
|
||||
gtk_window_set_title(GTK_WINDOW(ui->window), "Kino");
|
||||
gtk_window_set_default_size(GTK_WINDOW(ui->window), 900, 600);
|
||||
gtk_window_set_position(GTK_WINDOW(ui->window), GTK_WIN_POS_CENTER);
|
||||
|
||||
@ -671,9 +671,9 @@ void ui_update_title(AppUI *ui, const char *media_title)
|
||||
|
||||
char title[1024];
|
||||
if (media_title && strlen(media_title) > 0) {
|
||||
snprintf(title, sizeof(title), "%s - Media Player", media_title);
|
||||
snprintf(title, sizeof(title), "%s - Kino", media_title);
|
||||
} else {
|
||||
snprintf(title, sizeof(title), "Media Player");
|
||||
snprintf(title, sizeof(title), "Kino");
|
||||
}
|
||||
|
||||
gtk_window_set_title(GTK_WINDOW(ui->window), title);
|
||||
@ -796,7 +796,7 @@ static void on_player_event(Player *player, mpv_event *event, gpointer user_data
|
||||
int idle = *(int *)prop->data;
|
||||
if (idle) {
|
||||
controls_reset(ui->controls);
|
||||
ui_update_title(ui, "Media Player");
|
||||
ui_update_title(ui, "Kino");
|
||||
}
|
||||
mpris_update_playback_status(ui);
|
||||
}
|
||||
@ -1598,7 +1598,7 @@ static void on_playback_stop(GtkMenuItem *item, gpointer data)
|
||||
|
||||
/* Immediately reset UI */
|
||||
controls_reset(ui->controls);
|
||||
ui_update_title(ui, "GTK2 Media Player");
|
||||
ui_update_title(ui, "Kino");
|
||||
}
|
||||
|
||||
static void on_playback_prev(GtkMenuItem *item, gpointer data)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user